IF Statement

K

kleivakat

I'm trying to put a formula in the cell that runs a formula, and if hte
result is less than zero, enter zero; if the result is not less than zero,
enter the result. Here's what I have so far:

=IF(+J2-I2<0,"0","=SUM(J2-I2)")

The first part works, i.e., if the number is less than zero a zero appears,
but the second part doesn't report the result if the number is greater than
zero.

Thanks for any help.
 
T

Tyro

=IF(+J2-I2<0,"0","=SUM(J2-I2)")
The "=SUM(J2-I2)" is text.

Try:
=IF(J2-I2<0,0,SUM(J2-I2))

Tyro
 
B

Bill Helbron

Could you please help me with a slightly different version of this issue? I have
a dollar value in cell J133. I also have dollar values in cells J131 and J134.
In cell J136, I want to insert the following:

If J134 is less than the value in J131, then enter a "NO" in cell J136 but if
J134 is => J131, then enter the computed dollar value in cell J136. Thanks!

Bill
 
T

Tyro

Not enough info to provide a formla. You say to return the computed dollar
value. What computation?
e.g =IF(J134<J131,"NO",Enter what computed dollar value?) if the computed
dollar value is the difference between J134 and J136
=IF(J134<J131,"NO",J134-J131)

Tyro
 
B

Bill Helbron

I see my error now. Thanks!
Bill

Not enough info to provide a formla. You say to return the computed dollar
value. What computation?
e.g =IF(J134<J131,"NO",Enter what computed dollar value?) if the computed
dollar value is the difference between J134 and J136
=IF(J134<J131,"NO",J134-J131)

Tyro
 

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

Top