#DIV/0! - how to get rid of it

D

Douglas @ Helpdesk

I have a user that the formula is H3=G3/F3 - where both g3 and f3 are blank
b/c they are not populated. The user wants them there so when the field
would be populated they would fill H3 correctly. The customer doesnt want to
see #DIV/0! going down the page. How could i fix this issue without having 0
all the way down and still have the functionality when the fields are
populated?
 
A

Alan

=IF(F3=0,"",G3/F3)
or
=IF(F3=0,0,G3/F3) and uncheck zero values in Tools > Options
Regards,
Alan.
 
P

Peo Sjoblom

=IF(F3=0,0,G3/F3)

or

=IF(F3=0,"",G3/F3)


the former returns a zero the latter a blank


--


Regards,


Peo Sjoblom
 
G

Gord Dibben

You could trap for just F3 being empty

=IF(F3="","",G3/F3) but that would leave a 0 if F3 was filled and G3 was empty

Or trap for either being empty

=IF(OR(F3="",(G3="")),"",G3/F3)


Gord Dibben MS Excel MVP
 

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

Top