#DIV/0! Error

  • Thread starter Kenny16301 via OfficeKB.com
  • Start date
K

Kenny16301 via OfficeKB.com

Hi,

In the formula listed below sometimes I put zeroes in the 2 cells or I leave
them blank but I get the #DIV/0! error. How can I add the ISError function to
my formula. Its driving me crazy.

=SUM(B14-C14)/B14

Thanks In advance.
Kenny
 
B

Bernard Liengme

Firstly, you do not need SUM. This is used in formulas such as SUM(A1:A100)
to sum a range.
You need just = (B14-C14)/B14
But if B14 is zero you will get DIV error
So =IF(B14<>0,(B14-C12)/B14,"Zero value in B14")
best wishes
 
D

Dan

Another one is use formula as below:
=if(iserror(SUM(B14-C14)/B14), "", SUM(B14-C14)/B14)
 

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

Return blank 3
problem of an empty cell 5
Can't seem to delete all images from a Word Doc 2
#DIV/0! message 1
#div/0 error 2
Supress DIV/0 2
hide #div/0 2
Div 0 help 1

Top