All functions / Logical

IF

Returns one value if a condition is TRUE and another if it is FALSE.

Syntax

=IF(logical_test, value_if_true, [value_if_false])

Arguments

Example

=IF(B2>=50, "Pass", "Fail") → "Pass" or "Fail"

Practise it