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 May 17th, 2007, 06:58 PM posted to microsoft.public.excel.misc
artemis1027
external usenet poster
 
Posts: 17
Default #div/0! error

I have a formula on one spreadsheet that uses data from other spreadsheets in
one workbook. The formula is =jan!e10/e2, and repeats down to =jan!e88/e2.
This equals a percentage. I am having trouble when jan!e10 is blank, it
gives me the #div/0! error, but when I try to do a conditional format, it
tells me that I cannot refer to cells on other spreadsheets. Is there
something I can do so it either shows a 0 or leaves it blank? Or even makes
the font white to match the background until a number is filled in?
  #2  
Old May 17th, 2007, 07:15 PM posted to microsoft.public.excel.misc
Simon
external usenet poster
 
Posts: 368
Default #div/0! error

Change the formula to =IF(jan!e101,0,jan!e10/e2) you may need to adjust the
0 if you are working with smaller numbers.

"artemis1027" wrote:

I have a formula on one spreadsheet that uses data from other spreadsheets in
one workbook. The formula is =jan!e10/e2, and repeats down to =jan!e88/e2.
This equals a percentage. I am having trouble when jan!e10 is blank, it
gives me the #div/0! error, but when I try to do a conditional format, it
tells me that I cannot refer to cells on other spreadsheets. Is there
something I can do so it either shows a 0 or leaves it blank? Or even makes
the font white to match the background until a number is filled in?

  #3  
Old May 17th, 2007, 07:15 PM posted to microsoft.public.excel.misc
JE McGimpsey
external usenet poster
 
Posts: 2,468
Default #div/0! error

I think you're confused. If your formula is

=jan!E10/E2

then the only way you can get #DIV/0 returned is if E2 is 0 (or blank)
or if jan!e10 contains a formula that returns #DIV/0.


In the former case, it's best to use

=IF(E2=0,"",jan!E10/E2)

In the latter, use that type of formula in jan!E10

In article ,
artemis1027 wrote:

I have a formula on one spreadsheet that uses data from other spreadsheets in
one workbook. The formula is =jan!e10/e2, and repeats down to =jan!e88/e2.
This equals a percentage. I am having trouble when jan!e10 is blank, it
gives me the #div/0! error, but when I try to do a conditional format, it
tells me that I cannot refer to cells on other spreadsheets. Is there
something I can do so it either shows a 0 or leaves it blank? Or even makes
the font white to match the background until a number is filled in?

  #4  
Old May 17th, 2007, 07:18 PM posted to microsoft.public.excel.misc
PCLIVE
external usenet poster
 
Posts: 1,024
Default #div/0! error

Try this:
=IF(E2="","",jan!e10/e2)

Regards,
Paul

"artemis1027" wrote in message
...
I have a formula on one spreadsheet that uses data from other spreadsheets
in
one workbook. The formula is =jan!e10/e2, and repeats down to
=jan!e88/e2.
This equals a percentage. I am having trouble when jan!e10 is blank, it
gives me the #div/0! error, but when I try to do a conditional format, it
tells me that I cannot refer to cells on other spreadsheets. Is there
something I can do so it either shows a 0 or leaves it blank? Or even
makes
the font white to match the background until a number is filled in?



  #5  
Old May 17th, 2007, 07:27 PM posted to microsoft.public.excel.misc
artemis1027
external usenet poster
 
Posts: 17
Default #div/0! error

That worked perfectly, thank you.

"Simon" wrote:

Change the formula to =IF(jan!e101,0,jan!e10/e2) you may need to adjust the
0 if you are working with smaller numbers.

"artemis1027" wrote:

I have a formula on one spreadsheet that uses data from other spreadsheets in
one workbook. The formula is =jan!e10/e2, and repeats down to =jan!e88/e2.
This equals a percentage. I am having trouble when jan!e10 is blank, it
gives me the #div/0! error, but when I try to do a conditional format, it
tells me that I cannot refer to cells on other spreadsheets. Is there
something I can do so it either shows a 0 or leaves it blank? Or even makes
the font white to match the background until a number is filled in?

  #6  
Old May 18th, 2007, 01:58 AM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default #div/0! error

What result do you get if E2 is blank or 0?

Maybe have a look at JE's response.


Gord Dibben MS Excel MVP

On Thu, 17 May 2007 11:27:02 -0700, artemis1027
wrote:

That worked perfectly, thank you.

"Simon" wrote:

Change the formula to =IF(jan!e101,0,jan!e10/e2) you may need to adjust the
0 if you are working with smaller numbers.

"artemis1027" wrote:

I have a formula on one spreadsheet that uses data from other spreadsheets in
one workbook. The formula is =jan!e10/e2, and repeats down to =jan!e88/e2.
This equals a percentage. I am having trouble when jan!e10 is blank, it
gives me the #div/0! error, but when I try to do a conditional format, it
tells me that I cannot refer to cells on other spreadsheets. Is there
something I can do so it either shows a 0 or leaves it blank? Or even makes
the font white to match the background until a number is filled in?


 




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 05:54 AM.


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