IF Function Explained
The IF
Function in Microsoft Excel is a logical function that tests a condition and returns one value if the condition is TRUE
and another value if the condition is FALSE
. It has the syntax IF(logical_test, value_if_true, value_if_false)
. It can be used to make decisions based on the values in a cell or range of cells.
IF Function Syntax
IF(logical_test, [value_if_true], [value_if_false])
- logical_test: A value or logical expression that can be either TRUE or FALSE.
- value_if_true: The value that is returned if the logical_test is TRUE.
- value_if_false: The value that is returned if the logical_test is FALSE.