Turning a number into a band — a test score into a letter grade, a value into Low/Medium/High — is a classic nested IF job. Modern Excel does it more cleanly with IFS, and a lookup table beats both when the bands change often.
TRUE is the catch-all.
The example
Scores to letter grades.
| A | B | C | |
|---|---|---|---|
| 1 | Student | Score | Grade |
| 2 | Ana | 93 | A |
| 3 | Ben | 81 | B |
| 4 | Cy | 78 | C |
| 5 | Dot | 55 | F |
The formula
The grade formula, copied down:
How it works
IFS evaluates condition/result pairs top to bottom:
- It checks
B2>=90first. For 93 that’s TRUE, so it returns "A" and stops. - For 81, the first test fails but
B2>=80is TRUE → "B". - Order from highest to lowest matters: the first TRUE wins, so a high cutoff must come before a lower one.
- The final
TRUE,"F"catches anything that failed every band — the "else".
Why not nested IF? =IF(B2>=90,"A",IF(B2>=80,"B",IF(...))) works everywhere but is hard to read and easy to mis-nest. IFS (Excel 2019+) flattens it. A lookup table is best of all when bands change.
Try it: interactive demo
Drag the score and watch which band IFS returns.
Variations
Nested IF (every version)
Works in Excel 2016 and older:
Lookup-table version (easiest to maintain)
Put cutoffs (0,60,70,80,90) and letters in a table and use XLOOKUP’s next-smaller match — change bands without touching the formula:
Pitfalls & errors
Wrong grades from wrong order. If you test >=60 before >=90, every passing score returns "D". Always go highest cutoff first.
IFS needs a catch-all. Without a final TRUE, value, a score matching none of the tests returns #N/A.
IFS requires Excel 2019+. Older versions show #NAME? — use the nested IF or the lookup-table version.
Practice workbook
Frequently asked questions
How do I convert a score to a letter grade in Excel?
What's better, nested IF or IFS?
Why does my IFS return #N/A?
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