Getting rid of #DIV/0!

  • Thread starter Thread starter sirjbean
  • Start date Start date
S

sirjbean

This is the formula I'm using =sum(E12*100)/F12. If E12 is left
blank with no entry I get #DIV/0!. How can I get rid of that result
without having to put a zero in E12?
 
Trap for F12 being blank or a zero.

=IF(OR(F12="",F12=0),"",(E12*100)/F12)


Gord Dibben MS Excel MVP
 
Try this formula

=IF(ISERROR((E12*100)/F12),"",(E12*100)/F12)

What you're saying is

IF The Value E12*100 / F12 IS an ERROR then display "" (blank) else
work out the sum and display it.

Hope this works.
 
Back
Top