remove #DIV/0!

  • Thread starter Dopase via OfficeKB.com
  • Start date
D

Dopase via OfficeKB.com

I tried some of the options given at other formula's but I couldn't get it to
work. I have this formula:

=SUM(Q76:Q77)/SUM(Q76:Q78) and i get the #DIV/0! can some one help me ?
 
B

Bob Phillips

=IF(SUM(Q76:Q78)=0,"",SUM(Q76:Q78))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
P

Pete_UK

You get this error when you are trying to divide by zero, so you need
to test for this and avoid it - here's how:

=IF(SUM(Q76:Q78)=0,0,SUM(Q76:Q77)/SUM(Q76:Q78))

i.e. if the divisor is zero then return zero (or some other
value/message) otherwise evaluate the formula (which might still equate
to zero if SUM(Q76:Q77) evaluates to zero).

Hope this helps.

Pete
 
Top