IFS function in Excel: examples and practice
IFS tests several conditions in order and gives back the value of the first condition that is TRUE. For example, =IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"F") gives a grade for the score in B2.
Syntax
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
logical_test1- The first condition. Excel tests it first.
value_if_true1- The result when the first condition is TRUE.
logical_test2, value_if_true2, ...- Optional. More pairs of condition and result. Use TRUE as the last condition for all other cases.
Examples
Example data
| A | B | |
|---|---|---|
| 1 | Team | Score |
| 2 | North | 92 |
| 3 | South | 74 |
| 4 | East | 58 |
| 5 | West | 81 |
| Formula | Result | What it does |
|---|---|---|
=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"F") | A | 92 passes the first test, so IFS stops and gives A. |
=IFS(B3>=90,"A",B3>=80,"B",B3>=70,"C",TRUE,"F") | C | 74 fails the first two tests and passes the third. |
=IFS(B4>=90,"A",B4>=80,"B",B4>=70,"C",TRUE,"F") | F | 58 fails all tests. TRUE at the end catches all other cases. |
Try it
In cell D5, give the grade for West with IFS: A from 90, B from 80, C from 70, else F.
Show the solution
=IFS(B5>=90,"A",B5>=80,"B",B5>=70,"C",TRUE,"F") → B
Common mistakes
#N/A when no condition is true
Without a last pair like TRUE,"F", a score of 58 gives #N/A. Add TRUE as the last condition.
Conditions in the wrong order
IFS stops at the first TRUE. If B2>=70 comes first, 92 also gets C. Start with the highest limit.

Practice this in a story
A short lesson from a real job. We show you each step, then you do it yourself.
Stage slots · Module 5 · Logical · 5 min
The festival is over, and it was a success. Priya already plans next year. Bands with more fans play later in the day. Long sets get more drink tokens. Two answers are not enough now.
Practice this in a story