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  

#DIV/0! error



 
 
Thread Tools Display Modes
  #1  
Old July 12th, 2004, 03:34 PM
Jesse
external usenet poster
 
Posts: n/a
Default #DIV/0! error

i created a formula in a cell b4 as follows: =(c4/c2)
there is nothing in c2 yet becasue it is for data for the
month of august, so in b4 I get the #### error, and all i
want it to say is 0% until new data is entered in c2
it looks sloppy this way, can anyone help?
can i change the formula to say it's okay to divide by
zero and get zero as the result?

thank you for any help!!!!
  #2  
Old July 12th, 2004, 03:42 PM
Norman Harker
external usenet poster
 
Posts: n/a
Default #DIV/0! error

Hi Jesse!

One way:

=IF(ISBLANK(C2),0,C4/C2)

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia



  #3  
Old July 12th, 2004, 03:44 PM
Andy B
external usenet poster
 
Posts: n/a
Default #DIV/0! error

Hi

Try this:
=IF(C2=0,0,C4/C2)

--
Andy.


"Jesse" wrote in message
...
i created a formula in a cell b4 as follows: =(c4/c2)
there is nothing in c2 yet becasue it is for data for the
month of august, so in b4 I get the #### error, and all i
want it to say is 0% until new data is entered in c2
it looks sloppy this way, can anyone help?
can i change the formula to say it's okay to divide by
zero and get zero as the result?

thank you for any help!!!!



  #4  
Old July 12th, 2004, 03:55 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default #DIV/0! error

Hi
try
=IF(N(C2),C4/C2,0)

--
Regards
Frank Kabel
Frankfurt, Germany


Andy B wrote:
Hi

Try this:
=IF(C2=0,0,C4/C2)


"Jesse" wrote in message
...
i created a formula in a cell b4 as follows: =(c4/c2)
there is nothing in c2 yet becasue it is for data for the
month of august, so in b4 I get the #### error, and all i
want it to say is 0% until new data is entered in c2
it looks sloppy this way, can anyone help?
can i change the formula to say it's okay to divide by
zero and get zero as the result?

thank you for any help!!!!

  #5  
Old July 12th, 2004, 03:57 PM
external usenet poster
 
Posts: n/a
Default #DIV/0! error

hi Norman, thanks for your quick response!!

I just tried that and it didn't work??

i actually gave you the wrong letters but i don't suppose
it matters....

in L3 i have the formula: =(M3/M2)
there is no data in any of these 3 cells yet, so when
there is no data I want L3 to say 0% until I put data in
m3 and m2....

or even if the data in m3 and m2 is zero at the end of the
month i still want l3 to do the math and come up with 0%

so confused!!!
-----Original Message-----
Hi Jesse!

One way:

=IF(ISBLANK(C2),0,C4/C2)

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia



.

  #6  
Old July 12th, 2004, 04:13 PM
Norman Harker
external usenet poster
 
Posts: n/a
Default #DIV/0! error

Hi Jesse!

To cover the dual requirement of adjacent cells being empty you can
use:

=IF(COUNT(M2:M3)2,0,M3/M2)

COUNT counts cells with data (more correctly, numbers and also numbers
within the list of arguments in them). Thus if one or both cells is
empty, the count will not be = 2 and the formula will return 0.

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia



  #7  
Old July 12th, 2004, 06:33 PM
Jesse
external usenet poster
 
Posts: n/a
Default thank you


got it, thank you for all your help!!!
 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Product Key for Office XP P.G.Indiana Setup, Installing & Configuration 1 June 7th, 2004 03:22 AM
Productkey problem when installing office 2003 on network Stefan Schreurs Setup, Installing & Configuration 1 June 1st, 2004 11:16 PM


All times are GMT +1. The time now is 10:54 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.