Excel's IF function enables you to run logical tests and return various values depending on the outcome. You can use your spreadsheet to execute conditional computations and make judgments thanks to it.
Syntax: IF(logical_test, value_if_true, value_if_false)