remove #DIV/0!

  • Thread starter Thread starter Dopase via OfficeKB.com
  • Start date 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 ?
 
=IF(SUM(Q76:Q78)=0,"",SUM(Q76:Q78))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
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
 
Try...

=If(IsError(SUM(Q76:Q77)/SUM(Q76:Q78)),0,SUM(Q76:Q77)/SUM(Q76:Q78) )
 

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

Similar Threads


Back
Top