Both handle multiple conditions — so when do you reach for IFS, a nested IF, or a lookup table? A quick guide with the same logic written three ways.
The example
One result, three approaches.
| A | B | |
|---|---|---|
| 1 | Method | Best for |
| 2 | IFS | a few inline bands (2016+) |
| 3 | Nested IF | any version, 2-3 levels |
| 4 | Lookup table | many bands, easy edits |
The formula
Pick by version and scale:
How it works
Three tools, three sweet spots:
- IFS (2016+): cleanest for a handful of conditions written inline — no nesting, easy to read.
- Nested IF: works in every version; fine up to 2–3 levels, but gets unreadable deeper.
- Lookup table (VLOOKUP/XLOOKUP approximate): best when there are many bands or they change often — edit the table, not the formula.
- Rule of thumb: ≤3 conditions → IFS/nested IF; many or changing → a table.
SWITCH is the fourth option — best when you’re matching one value against a list of exact cases (status codes, abbreviations) rather than numeric ranges. IFS handles ranges; SWITCH handles equality.
Try it: interactive demo
Enter a score; same grade three ways.
Variations
SWITCH for exact cases
Codes, not ranges:
Nested IF
Any version:
Lookup table
Scalable:
Pitfalls & errors
Deep nesting is error-prone. Past 3–4 nested IFs, switch to IFS or a table for sanity.
IFS needs 2016+. For shared files that might open in older Excel, prefer nested IF or a lookup.
Ranges vs exact. Use IFS/nested IF (or approximate lookup) for ranges; SWITCH/exact VLOOKUP for specific values.
Practice workbook
Frequently asked questions
When should I use IFS instead of nested IF in Excel?
What's the difference between IFS and SWITCH?
How many nested IFs is too many?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class