#DIV/0! error

  • Thread starter Thread starter Jesse
  • Start date Start date
J

Jesse

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!!!!
 
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!!!
 
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.
 

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


Back
Top