IF
Choose between two results based on a test.
Syntax
=IF(logical_test, value_if_true, [value_if_false])Worked example
Choose a result for a score against a pass mark of 70.
=IF(72>=70,"Pass","Retry")Result Pass
Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceExcel IF Formula: Simple to Advanced (multiple criteria, nested IF, AND, OR functions)
Practice IF
Return “Pass” when the score reaches the pass mark and “Retry” otherwise.
| A | B | |
|---|---|---|
| 1 | ||
| 2 |
Show example formula
=IF(A2>=B2,"Pass","Retry") Lesson quiz
Answer three questions to see your level in this lesson.
