Error Terms

M

Michael Gudyka

How can I get an error term, such as #DIV/0!, to display as just a zero? Thanks
 
J

JE McGimpsey

I really discourage using iserror - it ignores too many "unexpected"
errors (displaying a valid, but incorrect value - hmmm...where have we
heard about *that* lately??).

And since it calls fewer functions, this is actually more efficient:

=IF(yourdenominator=0, 0, yourformula)
 
D

Dave Peterson

On the other hand, =iserror() does help if either the numerator or denominator
cells contain text.

And personally, I think returning a 0 when the divisor is 0 is just another way
to hide an error (expected or unexpected).

==
I wasn't trying to sound too argumentative. I understand your point.
 
D

Dave Peterson

And just to add, I've found that my co-workers were much more interested in the
"prettiness" of the worksheet than the accuracy. <gd&r>
 
Top