IF and AVERAGE

G

Guest

Hi,

I have a column of numbers, some of which are zero.

I want to obtain the average of the numbers in the column and exclude the
zeros from the calculation.

Thanks!
 
G

Guest

Hi James

Assuming your range is A1:A50
the formula would be
=AVERAGE(IF(A1:A50<>0,A1:A50))
entered using CONTROL & SHIFT & ENTER

Hope this helps
 
R

Ron Rosenfeld

Hi,

I have a column of numbers, some of which are zero.

I want to obtain the average of the numbers in the column and exclude the
zeros from the calculation.

Thanks!

=SUM(rng)/COUNTIF(rng,"<>0")

where rng is your reference to the column of numbers.




--ron
 

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