A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old November 27th, 2007, 06:30 PM posted to microsoft.public.excel.worksheet.functions
Douglas @ Helpdesk[_2_]
external usenet poster
 
Posts: 22
Default #DIV/0! - how to get rid of it

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?
  #2  
Old November 27th, 2007, 06:36 PM posted to microsoft.public.excel.worksheet.functions
Flick Olmsford
external usenet poster
 
Posts: 95
Default #DIV/0! - how to get rid of it

Try this in H3

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



"Douglas @ Helpdesk" wrote:

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?

  #3  
Old November 27th, 2007, 06:37 PM posted to microsoft.public.excel.worksheet.functions
Alan
external usenet poster
 
Posts: 431
Default #DIV/0! - how to get rid of it

=IF(F3=0,"",G3/F3)
or
=IF(F3=0,0,G3/F3) and uncheck zero values in Tools Options
Regards,
Alan.
"Douglas @ Helpdesk" wrote in
message ...
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?


  #4  
Old November 27th, 2007, 06:38 PM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
external usenet poster
 
Posts: 3,232
Default #DIV/0! - how to get rid of it

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

or

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


the former returns a zero the latter a blank


--


Regards,


Peo Sjoblom



"Douglas @ Helpdesk" wrote in
message ...
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?



  #5  
Old November 27th, 2007, 06:38 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default #DIV/0! - how to get rid of it

Try this:

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

Hope this helps.

Pete

On Nov 27, 6:30 pm, Douglas @ Helpdesk
wrote:
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?


  #6  
Old November 27th, 2007, 06:45 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default #DIV/0! - how to get rid of it

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


On Tue, 27 Nov 2007 10:30:02 -0800, Douglas @ Helpdesk
wrote:

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?


  #7  
Old November 27th, 2007, 07:56 PM posted to microsoft.public.excel.worksheet.functions
Douglas @ Helpdesk[_2_]
external usenet poster
 
Posts: 22
Default #DIV/0! - how to get rid of it

Thank you all for your help. It worked. Thank you once again

"Douglas @ Helpdesk" wrote:

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?

  #8  
Old November 30th, 2007, 01:10 AM posted to microsoft.public.excel.worksheet.functions
Dana DeLouis
external usenet poster
 
Posts: 468
Default #DIV/0! - how to get rid of it

Beginning with Excel 2007...

=IFERROR(G3/F3,"")

- -
HTH
Dana DeLouis


"Douglas @ Helpdesk" wrote in
message ...
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?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.