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
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
| Type | Means |
|---|---|
| = | 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
| A | B | C | |
|---|---|---|---|
| 1 | Student | Score | Grade |
| 2 | Anna | 72 | B |
| 3 | Ben | 55 | D |
| 4 | Chris | 90 | A |
| 5 | Dana | 41 | 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
| Situation | Best choice |
|---|---|
| One condition, two outcomes | IF |
| Several ranges or comparisons (>=, <) | IFS |
| One value compared to fixed options ("M" → Monday) | SWITCH |
| Many tiers that may change | A 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:
| A | B | C | |
|---|---|---|---|
| 1 | Parcel | Weight (kg) | Cost |
| 2 | A | 1.5 | $4.95 |
| 3 | B | 8 | $6.95 |
| 4 | C | 25 | $12.95 |
| 5 | D | 42 | Freight |
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.
Keep learning
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").