Excel IFS function
IFS flattens a stack of nested IFs into a list: condition, result, condition, result, evaluated top to bottom, stopping at the first match. The order is the priority, which reads like a business rule. It has no else branch, so the last pair must be TRUE plus a fallback — otherwise everything unmatched returns #N/A.
Logic · Available in: Excel 2019 and Excel 365
Syntax
IFS(logical_test1, value1, [logical_test2, value2], ...)What it returns The value of the first condition that is true; #N/A if none of them is.
| Arguments | ||
|---|---|---|
| logical_test1 | required | The first condition. |
| value1 | required | What to return when the first condition is true. |
| logical_test2 | optional | Further conditions, in pairs, up to 127 of them. |
| value2 | optional | The result paired with the previous condition. |
Examples
Grade by score
| Student | Score | Grade |
| Ana | 95 | |
| Ben | 82 | |
| Cara | 68 |
= IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"F")→ A
95 satisfies the first condition, so the formula returns A and never looks further. The final TRUE,"F" pair is the fallback: any score the earlier conditions missed lands on F instead of #N/A.
Next action from order status
| Status | Next step |
| Pending | |
| Shipped |
= IFS(A2="Pending","Send reminder",A2="Shipped","Wait for delivery",TRUE,"Check manually")→ Send reminder
Conditions are exact text comparisons, so order does not matter but coverage does. Real status values often carry a trailing space ("Pending "), which breaks the comparison — wrap the cell in TRIM.
Common mistakes
- 1.Forgetting the fallback. With no condition true the result is #N/A, and one #N/A in a report multiplies into a screen of errors.
- 2.Wrong condition order. IFS stops at the first true condition, so putting B2>=60 before B2>=90 turns a 90 into a C.
- 3.Not available before Excel 2019: on an older machine the same file shows #NAME?. Fall back to nested IF there.
- 4.Conditions and results must come in pairs; an odd number of arguments gives #N/A or #VALUE!.
How to use it
- 1.Click the cell where the result should appear.
- 2.Type = then the function name, and press Tab to accept it.
- 3.Enter each argument separated by commas; ranges can be dragged with the mouse.
- 4.Press Enter. Drag the fill handle down if the same formula applies to more rows.
Frequently asked questions
What is the syntax of IFS?
IFS(logical_test1, value1, [logical_test2, value2], ...). What it returns: The value of the first condition that is true; #N/A if none of them is.
Which Excel versions support IFS?
Excel 2019 and Excel 365. It is available in every desktop version unless the note above says otherwise.
Why does IFS return an error instead of a value?
Forgetting the fallback. With no condition true the result is #N/A, and one #N/A in a report multiplies into a screen of errors.