Use IFS to Replace Long Nested IF Formulas

Excel Formulas › Logical

365 / 2019

When you have more than two or three outcomes, nested IFs get ugly fast. IFS tests conditions in order and returns the first match — far easier to read and edit.


Quick formula: List condition/result pairs in priority order:
=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"F")

IFS stops at the first TRUE condition, so order them from most specific to the catch-all.

Functions used (tap for the full reference guide):

The example

Convert a numeric score into a letter grade band.

ABC
1StudentScoreGrade
2Ana95A
3Ben85B
4Cara58F

The formula

Each pair is a test and the value to return if it's true:

=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",B2>=60,"D",TRUE,"F") // TRUE at the end is the catch-all

How it works

Reading IFS:

  1. IFS checks each condition left to right and returns the result of the first one that is TRUE.
  2. Order matters — put the highest threshold first so a 95 doesn't match the 80 band by accident.
  3. End with TRUE,"F" as a default so every value gets a result.
  4. Without that final TRUE, a value matching nothing returns #N/A.

If you're testing one value against fixed matches (not ranges), SWITCH is even tidier.

Try it: interactive demo

Interactive

Enter a score — IFS returns the matching grade band.

Variations

Same logic with nested IF

Older Excel without IFS can nest IFs — harder to read but identical results.

=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C",IF(B2>=60,"D","F"))))

Exact-match version with SWITCH

When matching specific values, SWITCH avoids repeating the cell reference.

=SWITCH(B2,1,"Gold",2,"Silver",3,"Bronze","—")

Pitfalls & errors

Leaving off the final TRUE,default returns #N/A for anything that matches no condition.

IFS does not have a built-in 'else' — the TRUE pair is how you create one. Conditions are also order-sensitive.

Practice workbook

📊
Download the free Use IFS to Replace Long Nested IF Formulas practice workbook
Edit the yellow Score cells; the Grade column re-evaluates the bands.

Frequently asked questions

Which Excel versions have IFS?
Excel 2019, 2021, and Microsoft 365. In Excel 2016 and earlier, use the nested IF version shown above.
Why do I get #N/A?
No condition was TRUE and there's no catch-all. Add TRUE,default as the last pair.
IFS or SWITCH?
Use IFS for ranges and comparisons; use SWITCH when you're matching one value against a fixed list of exact options.

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

Related formulas: SWITCH for exact matches · Nested IF grade formula

Function references: IFSIFSWITCH