Remove the #DIV/0!

C

Corey

I am using the formula:

=AVERAGE(D4:D13,H4:H13,L4:L13) in Cell D15.

But when there is NO data in those cells, how can i set the formual above to display NOTHING rather
than "#DIV/0!" ?

Corey....
 
P

Peo Sjoblom

Remove the cause, in those cells with the errors change the formula

=IF(A2=0,"",A1/A2)

replace with your data accordingly


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)
 
C

Corey

Thanx.
Ended up with:
=IF(SUM(D4:D13,H4:H13,L4:L13)<>0,AVERAGE(D4:D13,H4:H13,L4:L13),"")

Corey....
Remove the cause, in those cells with the errors change the formula

=IF(A2=0,"",A1/A2)

replace with your data accordingly


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)
 
D

David Biddulph

May be better to have
=IF(COUNT(D4:D13,H4:H13,L4:L13)<>0,AVERAGE(D4:D13,H4:H13,L4:L13),"")
then you can cope with the case where the total, and therefore the average,
is zero.
--
David Biddulph

Corey said:
Thanx.
Ended up with:
=IF(SUM(D4:D13,H4:H13,L4:L13)<>0,AVERAGE(D4:D13,H4:H13,L4:L13),"")
 

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