#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
 
G

Guest

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

problem of an empty cell 5
#DIV/0! message 1
#div/0 error 2
hide #div/0 2
Div / 0 5
Div 0 help 1
sumif with 2 variables 2
Using iserror in formula 1

Top