#DIV/0! and IF statement

G

Guest

I have 3 columns of data; A, B and C.

The formula for column C is = (A-B)/B

If column A is 0, then the result is -100%

If both column A and column B is 0 the result is #DIV/0!

What formula do I use so that when the answer is -100%, it says this, but
when the answer is #DIV/0!, I get a blank?

I'm trying is =if(iserror((a-b)/b),"",(a-b/b)) but I get blanks even if the
answer is -100%.

Thanks!
 
J

Justloseit

Go to tools and click conditional formatting. Click on the drop down
list and select "Formula is" then type this in the text box next to it
=ISERROR(C3)

Then click format button and click the color drop down box and select
white. (Even if the orginal color of the color drop down box is white
still click on it and select white or it will not work)
 

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

Another DIV/0 Error 2
#DIV/0! in a Pivot Table 1
Having Blank Cells, etc. ? 1
Div/0 error on running mean % 2
"#DIV/0!" 4
Need help with if(and formula.. 6
#DIV/0! error 4
problem with an averaging formula 2

Top