This is a fairly simply formula that I need syntax for. I do not know the syntax that Excel will accept.
Formula: I want to return a value of "0" if the target cell has a value of "2" or less. If the value is greater than "2" I want to multiply by "25".
I tried the below formula but my syntax is all wrong and am not sure where to look for correct syntax:
=IF(B2<2,0),(B2>2, B2*25)
Thank you for any help.
First, note the proper syntax for the
IF()function:IF(logical_test, value_if_true, [value_if_false])The
logical_testisB2 <= 2.The
value_if_true_is0.The
value_if_false(i.e., ifB2is> 2) isB2 * 25.So the formula is
=IF(B2<=2, 0, B2*25).For example (data starting in
B2, formula inC2):Follow-up from comments:
Now you want another
IF()function as to evaluate what you do if B2 > 2:=IF(B2<=2, 0, IF(B2*25>100, 100, B2*25))