Average when No Data

C

carl

I use this formula:

=AVERAGE(IF(ISNUMBER(I7:AQ7);I7:AQ7))

When there is no data in the range, the formula returns DIV/0. Is there a
way to modify the formula so that it returns """ instead of DIV/0.

Thank you in advance.
 
B

Bob Phillips

=IF(COUNT(I7:AQ7)=0,"",AVERAGE(IF(ISNUMBER(I7:AQ7);I7:AQ7)))


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
D

David Billigmeier

Change to:

=IF(AND(NOT(ISNUMBER(I7:AQ7))),"",AVERAGE(IF(ISNUMBER(I7:AQ7),I7:AQ7)))
 
B

Biff

Hi!

One way (array entered):

=IF(COUNT(I7:AQ7),AVERAGE(IF(ISNUMBER(I7:AQ7),I7:AQ7)),"")

If Count = 0 the formula returns blank ("").

Biff
 
D

Dave Peterson

Since =Average() ignores text, is there a reason you used the array formula?

=if(count(I7:aq7)=0;"";average(i7:aq7))

The array formula will ignore errors (#ref, div/0, etc), though.
 

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