IFS Function
Checks several conditions in order and returns the result for the first one that's TRUE.
Category
Logical
Available in
Excel 2019+, Microsoft 365
Returns
The value paired with the first TRUE test
Overview
IFS replaces long chains of nested IFs. You list pairs of “test, result”, and Excel works down the list returning the result for the first test that passes.
It's ideal for grades, commission tiers, shipping bands and anything else with several levels.
Syntax
Arguments
| Argument | Required? | What it does |
|---|---|---|
| logical_test1 | Yes | The first condition to check. |
| value_if_true1 | Yes | The result if logical_test1 is TRUE. |
| logical_test2, value_if_true2, … | Optional | More test/result pairs, up to 127, checked in order. |
Examples
Example 1 — Letter grades
90+ is an A, 80+ a B, 70+ a C, everything else an F.
| A | B | C | |
|---|---|---|---|
| 1 | Student | Score | Grade |
| 2 | Ana | 94 | A |
| 3 | Ben | 81 | B |
| 4 | Cara | 67 | F |
| 5 | Dev | 75 | C |
- Ben's 81 fails B2>=90 but passes B2>=80, so he gets B — later tests are never checked.
- The final TRUE, "F" pair always passes, so it acts as the “everything else” result.
Example 2 — Commission tiers
Pay 3% under 10,000, 5% up to 25,000 and 8% above that.
Common mistakes
- #N/A errors. No test was TRUE. Add TRUE, "…" as the last pair to catch everything else.
- Wrong tier chosen. Tests are checked in order. Put the strictest (highest) threshold first.
- "You've entered too few arguments". Every test needs a result. Count your pairs.
Notes
- If you're matching one value against a list of exact options ("N" → North, "S" → South), SWITCH is shorter.
- Related functions: IF, SWITCH, XLOOKUP (for tiers kept in a table).

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.