#div/0! error

G

Guest

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?
 
G

Guest

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

JE McGimpsey

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
 
G

Guest

That worked perfectly, thank you.

Simon said:
Change the formula to =IF(jan!e10<1,0,jan!e10/e2) you may need to adjust the
0 if you are working with smaller numbers.
 
G

Gord Dibben

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

Maybe have a look at JE's response.


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

Similar Threads

#DIV/0! error 4
dividing 0 by 0 in excel 2003 10
Conditional Formatting for #DIV/0! 6
#div/0 error 2
#DIV/0! in a Pivot Table 1
Div / 0 5
Another DIV/0 Error 2
Div 0 help 1

Top