Learn Excel
EN
Sets how numbers, dates and formulas look, so everything works just like your own Excel.

Home › Excel functions › IFS

IFS Function in Excel: Multiple Conditions Without Nesting

IFS checks a list of conditions in order and returns the result of the first one that's true. It does the same as a stack of nested IFs, but is much easier to read and write.

In this guide
  1. IFS syntax
  2. Example: grades
  3. Try it yourself
  4. The TRUE default
  5. Order matters
  6. IFS vs. IF vs. SWITCH
  7. In practice: shipping cost by weight
  8. Keep learning
  9. FAQ

IFS syntax

=IFS(condition1, value1, [condition2, value2], …)

You write pairs: a condition and what to return when it's true. Up to 127 pairs. IFS is available in Excel 2019, 2021, 2024 and Microsoft 365.

Comparison operators: what to type

TypeMeans
=is equal to
>greater than
<less than
>=greater than or equal to: first >, then =
<=less than or equal to: first <, then =
<>not equal to: first <, then >

Always two separate keys, never a special symbol.

Example: grades from scores

ABC
1StudentScoreGrade
2Anna72B
3Ben55D
4Chris90A
5Dana41F
=IFS(B2>=80, "A", B2>=70, "B", B2>=60, "C", B2>=50, "D", TRUE, "F")

Excel checks from left to right and stops at the first true condition. For 72, the first test fails and the second succeeds: B. The same with nested IF needs four IFs and four closing brackets.

IFS practice: try it yourself

Reading is one thing, typing it is another. Build the formula below step by step: the tips tell you what to type next, and you can click or drag across cells to add them, just like in Excel.

Task: Give the score in B2 a grade in C2: A from 90, B from 70, C from 50: =IFS(B2>=90,"A",B2>=70,"B",B2>=50,"C")

The TRUE trick for "everything else"

IFS has no built-in "otherwise" value. If no condition is true, it returns #N/A. That's why the last pair is TRUE, "F": TRUE is always true, so it catches everything the earlier conditions missed.

Order matters

Because IFS stops at the first match, put the strictest condition first. =IFS(B2>=50, "D", B2>=80, "A", …) gives every score above 50 a D, because 90 is also >= 50.

IFS vs. IF vs. SWITCH vs. a lookup

SituationBest choice
One condition, two outcomesIF
Several ranges or comparisons (>=, <)IFS
One value compared to fixed options ("M" → Monday)SWITCH
Many tiers that may changeA table with XLOOKUP or VLOOKUP

In practice: shipping cost by weight

A parcel service charges by weight: up to 2 kg, up to 10 kg, up to 30 kg, and anything heavier goes as freight. Four bands, one formula:

ABC
1ParcelWeight (kg)Cost
2A1.5$4.95
3B8$6.95
4C25$12.95
5D42Freight

C2: =IFS(B2<=2, 4.95, B2<=10, 6.95, B2<=30, 12.95, TRUE, "Freight")

IFS checks the conditions from top to bottom and stops at the first one that is true. That is why the order runs from light to heavy: with the 30 kg test first, every parcel would cost 12.95.

Frequently asked questions

Why does IFS return #N/A?

None of the conditions is true. Add TRUE with a default value as the last pair.

Is IFS available in Excel 2016?

Only for Microsoft 365 subscribers. The standalone Excel 2016 doesn't have IFS; use nested IFs there.

Can I combine IFS with AND or OR?

Yes, any condition can be AND(...) or OR(...), for example =IFS(AND(B2>=60, C2="Yes"), "Pass", TRUE, "Fail").