Formula Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When creating formulas, is there a way to avoid the #DIV/0! Error without
having to insert IF(C5<0,0) into each formula?
 
Cheri said:
When creating formulas, is there a way to avoid the #DIV/0! Error
without having to insert IF(C5<0,0) into each formula?

Not really.
 
Cheri

In order to prevent the #DIV/0! you must trap the 0(or blank) somehow.

=IF(C5=0,"",B5/C5)

=IF(ISERROR(B5/C5),"",B5/C5)

Watch out when using ISERROR.......it will mask all errors, not just #DIV/0!

Gord Dibben Excel MVP
 
I would rather change the formula to check for possible errors first, but you
could use Format|conditional formatting.

And make the text color match the fill color (white on white). The error is
still there, but it looks ok.

=iserror(a1)

would be the formula I'd use for the Conditional formatting formula for A1.

===
I don't like to have hidden stuff like this. It sometimes makes it difficult to
see why the next formula returns an error. But it may be useful in this case.
 

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