average by operand

B

Bruce

I have a column with percentages that are positive and negative.
How do I calculate the Average of the postive's and an Average of the
Negatives?

Bruce
 
R

RagDyer

One way:

=SUMIF(B1:B100,">0")/COUNTIF(B1:B100,">0")
=SUMIF(B1:B100,"<0")/COUNTIF(B1:B100,"<0")

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

I have a column with percentages that are positive and negative.
How do I calculate the Average of the postive's and an Average of the
Negatives?

Bruce
 
B

BenjieLop

Bruce said:
I have a column with percentages that are positive and negative.
How do I calculate the Average of the postive's and an Average of the
Negatives?

Bruce


If the numbers are in, say, A1:A100, then your formulas are:

For the positives: =sumif(A1:A100,">0")/countif(A1:A100,">0")

For the negatives, just simply replace ">0" with "<0
 
K

Ken Wright

=AVERAGE(IF(A1:A20>0,A1:A20))
=AVERAGE(IF(A1:A20<0,A1:A20))

array entered using CTRL+SHIFT+ENTER, but what about the 0s, don't they fall
into one of the camps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top