Free IFS practice

IFS practice exercises

IFS checks several conditions in order and returns the value for the first one that is true. 4 reps, from easy to hard, each checked in a real spreadsheet engine. 2 free, 2 with Pro.

=IFS(test1, value1, test2, value2, ..., TRUE, value_else)
Skill: IFS Change skill (45)

IFS guide

How to use IFS in Excel

IFS checks several conditions in order and returns the value for the first one that's true. It replaces long chains of nested IFs for tiered results such as grades, bonus bands or shipping rates.

Order matters: put the strictest test first. End with TRUE and a default value, so every row gets an answer. IFS is available in Excel 2019 and later.

Syntax

=IFS(test1, value1, test2, value2, ..., TRUE, value_else)
ArgumentWhat it is
test1The first condition, such as B2>=6000.
value1What to return if test1 is true.
test2, value2, ...More pairs, checked in order. The first true test wins.
TRUE, value_elseA catch-all at the end: TRUE is always true, so its value is returned when nothing else matched.

Examples

Example 1 Label each rep. Star for 6000 or more, Hit for 5000 or more, otherwise Miss. Ana sold 5200.
C2fx=IFS(B2>=6000,"Star",B2>=5000,"Hit",TRUE,"Miss")
ABC
1RepSalesResult
2Ana5200Hit
3Ben4100
4Cara6100
5Dev5000

=IFS(B2>=6000,"Star",B2>=5000,"Hit",TRUE,"Miss") returns Hit.

Example 2 The default value. Ben sold 4100, so neither test is true and the TRUE catch-all returns Miss.
C3fx=IFS(B3>=6000,"Star",B3>=5000,"Hit",TRUE,"Miss")
ABC
1RepSalesResult
2Ana5200
3Ben4100Miss
4Cara6100
5Dev5000

=IFS(B3>=6000,"Star",B3>=5000,"Hit",TRUE,"Miss") returns Miss.

Example 3 Return a calculation. A 10% bonus from 6000, 5% from 5000, otherwise 0. Cara sold 6100.
C4fx=IFS(B4>=6000,B4*10%,B4>=5000,B4*5%,TRUE,0)
ABC
1RepSalesBonus
2Ana5200
3Ben4100
4Cara6100610
5Dev5000

=IFS(B4>=6000,B4*10%,B4>=5000,B4*5%,TRUE,0) returns 610.

Common mistakes

Tests in the wrong order

IFS stops at the first true test. Cara's 6100 is also at least 5000, so checking 5000 first labels her Hit instead of Star. Put the highest band first.

Wrong=IFS(B4>=5000,"Hit",B4>=6000,"Star",TRUE,"Miss") → Hit

Right=IFS(B4>=6000,"Star",B4>=5000,"Hit",TRUE,"Miss") → Star

No catch-all at the end

When no test is true, IFS returns #N/A. End with TRUE and a default.

Wrong=IFS(B3>=6000,"Star",B3>=5000,"Hit") → #N/A

Right=IFS(B3>=6000,"Star",B3>=5000,"Hit",TRUE,"Miss") → Miss

IFS questions

What is the difference between IF and IFS?

IF has one test and two outcomes. IFS has as many tests as you need, checked in order, which reads more clearly than IFs nested inside IFs.

Which Excel versions have IFS?

Excel 2019, 2021, 2024, Microsoft 365 and Excel on the web. In older versions, nest IF functions instead.

Why does IFS return #N/A?

None of the tests was true. Add TRUE and a default value as the last pair.

Related functions

Reading is the warm-up

The reps are what make it stick. Try IFS in the practice sheet above.

Practise IFS ↑