IF is Excel's decision-maker: it returns one value when a condition is true and another when false. Combined with AND/OR, it drives most business logic in spreadsheets.
IF
=IF(B2 >= 40, "Pass", "Fail")=IF(B2 > 100000, B2 * 0.9, B2) discount over a threshold=IF(AND(B2 >= 40, C2 = "Yes"), "OK", "Review") combine conditions=IF(OR(B2 = "A", B2 = "B"), "Top", "Other")
IFS & nested IF
=IFS(B2 >= 75, "Distinction",B2 >= 40, "Pass",TRUE, "Fail") — cleaner than nesting many IFs
Key takeaways
- 01IF(condition, if_true, if_false) returns different values based on a test.
- 02AND/OR combine multiple conditions inside IF.
- 03IFS handles multiple bands more readably than nested IFs (TRUE = else).
- 04IFERROR(formula, fallback) replaces error results with a clean value.
