Average

G

Guest

I'm trying to average a group of numbers. I do not want
to include the blank or zeros. I used the following to
exclude the zeros but it is still including the blanks.

Thanks for any help you might be able to send me.

=AVERAGE(SUM(K5:K73)/COUNTIF(K5:K73,"<>0"))
 
J

Jason Morin

How about:

=SUM(K5:K73)/(COUNT(K5:K73)-COUNTIF(K5:K73,0))

HTH
Jason
Atlanta, GA
 
D

Don Guillett

use this idea. it must be ARRAY entered with CTRL+SHIFT+ENTER
=AVERAGE(IF(C1:C100<>0,C1:C100))
 
H

Harlan Grove

I'm trying to average a group of numbers. I do not want
to include the blank or zeros. I used the following to
exclude the zeros but it is still including the blanks.

AVERAGE always excludes blank cells. COUNTIF using either "<0" or ">0" will
exclude blank cells and either nonnegative or nonpositive numbers.

If you want to average only positive numbers, you could use the array
formula

=AVERAGE(IF(Data>0,Data))

or the nonarray formula

=SUMIF(Data,">0")/COUNTIF(Data,">0")

If you have positive and negative numbers in your data, and you'd include
both positive and negative numbers in your average, then you should also
include zeros in your average.
 

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