Calculating Averages but excluding zero's

F

fodman

Hi,

i want to calculate the average of a column but exclude anyzeros in
that column.
For example: If column A1 contained 2, 2, 0, 2, 2, 0 then the average
would be 2. (8/4) NOT (8/6)

Thanks.
 
G

Guest

Try this:

=AVERAGE(IF(A1:A6>0,A1:A6))

Enter this as an array formula. Use CTRL-SHIFT-ENTER instead of just Enter.

HTH,
Elkar
 

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