Overwriting #DIV/0 value using ISERROR

G

Guest

I have formulas in cells that return a #DIV/0 because there is no data to put
in dependent cells in the formula. Someone show me, apparently way too long
ago, how to use ISERROR to cause the value to be "0" if an error was found
and to be the output of the formula if no errors were found.

It was something like =ISERROR(J5,0,E5/F5) but that's not working. I would
appreciate some help with the syntax.

Thanks
 
T

Trevor Shuttleworth

Probably:

=IF(ISERROR(E5/F5),0,E5/F5)

But you could just use:

=IF(F5=0,0,E5/F5)

Regards

Trevor
 
D

Dave Peterson

It might have been:
=if(iserror(e5/f5),0,e5/f5)

or

if e5 and f5 are always numbers (that may be 0):
=if(f5=0,0,e5/f5)
 

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

hide #div/0 2
Need "Div/0" Average Relief ... 4
Sandwich existing formulas with "If iserror(formula),0,formula)" 10
Div / 0 5
#DIV/0! Error 2
AVERAGE around a #Div/0 error? 2
DIV/0 1
#div/0 error 2

Top