How to use the IF function

In Excel, the “IF” statement is a logical function that allows you to test a condition and return one value if the condition is true and another value if the condition is false.

  • logical_test     is any value or expression that can be evaluated to TRUE or FALSE
  • value_if_true     is the value that will be returned if the logical test is TRUE
  • value_if_false     is the value that will be returned if the logical test is FALSE (optional)

In our example, we are wanting to determine if a value in Column B is Greater or Less Than 150

This formula tests if the value in cell B3 is greater than 150. If it is, the formula returns “Greater”; otherwise, it returns “Less Than or equal to 150”.