ignore #NA in average formula

C

Chart blues

I'm plotting daily results in a data table which sometimes have 0 values. I
have created a formula which replaces the 0 values with #NA
ie:=IF(B6,B6,NA()) . This throws off the average formula at the end of the
table. Can someone suggest a solution, please?

Thanks

Rosina
 
M

Mike H

Hi,

Try this and change the range to suit

=AVERAGE(IF(ISNUMBER(A1:A5),A1:A5,FALSE))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
just enter. If you do it correct then Excel will put curly brackets around
the formula{}. You can't type these yourself.

Mike
 
C

Chart blues

Mike: Thank you for the tip... it did the job!

Mike H said:
Hi,

Try this and change the range to suit

=AVERAGE(IF(ISNUMBER(A1:A5),A1:A5,FALSE))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
just enter. If you do it correct then Excel will put curly brackets around
the formula{}. You can't type these yourself.

Mike
 

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