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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

I'm getting the #DIV/0! error



 
 
Thread Tools Display Modes
  #1  
Old November 17th, 2009, 05:28 AM posted to microsoft.public.excel.misc
Reverand Mooney[_2_]
external usenet poster
 
Posts: 5
Default I'm getting the #DIV/0! error

When I'm calculating for a % I entered the IF formula =IF(B10=0,"",B10/C10)
and it worked ok when B10 was 0 but how would you modify this formula if
either B10 or C10 were 0? The result can display 0 for my purposes.

Thanks.
  #2  
Old November 17th, 2009, 06:12 AM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default I'm getting the #DIV/0! error

Try it like this...

=IF(OR(B10=0,C10=0),0,B10/C10)

--
Biff
Microsoft Excel MVP


"Reverand Mooney" wrote in
message ...
When I'm calculating for a % I entered the IF formula
=IF(B10=0,"",B10/C10)
and it worked ok when B10 was 0 but how would you modify this formula if
either B10 or C10 were 0? The result can display 0 for my purposes.

Thanks.



  #3  
Old November 17th, 2009, 06:27 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default I'm getting the #DIV/0! error

Try
=IF(B10=0,"",IF(C10=0,0,B10/C10))

If this post helps click Yes
---------------
Jacob Skaria


"Reverand Mooney" wrote:

When I'm calculating for a % I entered the IF formula =IF(B10=0,"",B10/C10)
and it worked ok when B10 was 0 but how would you modify this formula if
either B10 or C10 were 0? The result can display 0 for my purposes.

Thanks.

 




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 04:00 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.