Dealing with zero values

Closed
sphillips - 15 Jun 2009 à 14:58
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 15 Jun 2009 à 20:39
Hello,
I am trying to calculate percentages using several different worksheets. I have 6 sheets total with 4 being daily and the last to mtd. I am trying to put in formulas for the month to date sheets but I keep getting #DIV/0! and VALUE# errors. Can you please give me a formula where it will not count or recognize any zero values?

thanks in advance!

S Phillips

1 response

venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 811
15 Jun 2009 à 20:39
suppose A1 is blank and B1 is having some number and C1 has the formula
=B1/A1 will give that error
insstead in C1 type ths formula

=IF(A1=0,"",B1/A1)

after the first comma it is two double quotes.