IF statement

  • Thread starter Thread starter help!
  • Start date Start date
H

help!

I am not sure what to do here.
I have a worksheet and if C29 - C26 =>0, I want the cell to dispay the
amount (for example 20000 - 15000= 50000) but if it is <=0, I want the cell
to display 0.

Can I use an IF statment for this? How would I do this?

thanks!
 
You could also try

=(C29>C26)*(C29-C26)

The equation in first set of brackets returns 1 if true, 0 if false, and
the equation in the second set of brackets is multiplied by that value

Boatman
 
Thanks this worked for the one cell, however when I used it another cell to
show the increase for example =IF((C29-C26)<=0,C29-C26,0)

it returns the correct amount but with a negative sign in front. How do I
get rid of the negative sign?

thanks!
 

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