Excel If Function
Excel If Function
logical_test is any value or expression that can be evaluated to If the Logical_test is TRUE, or in other words if the value of B2
TRUE or FALSE is greater than or equal to 1000, than the function returns 10%
of B2
value_if_true is the value that is returned
if logical_test is TRUE If the Logical_test is FALSE, or in other words if the value of B2
is not greater than or equal to 1000, than the function returns
value_if_false is the value that is returned 5% of B2
if logical_test is FALSE
=IF(B2>=1000,”A $1000 or better”, “Less than a grand”) If the first logical_test (Score>89) is TRUE, "A" is returned
When you use text as the value_if_true or the value_if_false Up to seven IF functions can be nested together in one function
arguments, you must enclose the text in a pair of double
quotation marks (“ “)
If the value of A10 is equal to 100, than the function returns the Returns TRUE
sum of the values in cells B5 to B15 if all the logical arguments are TRUE
If the value of A10 is not equal to 100, than the function returns Returns FALSE
a blank string “” if one or more arguments is FALSE
If Score is Then return IF(AND(1<B4, B4<100), B4, "The value is out of range.”)
Greater than 89 A
From 80 to 89 B
From 70 to 79 C If B4 contains 104, then the value of the IF function is
From 60 to 69 D "The value is out of range.”
Less than 60 F
Wx 2
Returns FALSE y 3a x for x a
if all arguments are FALSE 6EI
Wx 2
Up to 30 conditions you want to test that can be y 3x a for x a
6EI
either TRUE or FALSE
IF Specifies a logical test to perform Use the IF function to compute the value of the
deflection if: