ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 34 · Logic

IFS in Excel

IFS checks several tests in order and gives the answer for the first one that is true. It does the same job as a nested IF, without all the parentheses.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Choose between many answers with IFS
  • End IFS with TRUE as a catch-all

How it works

IFS(test1, answer1, test2, answer2, …). Put the highest test first.

End with TRUE, "F" so every other score gets an answer.

Note: IFS works in Excel 2019 and newer, and in Microsoft 365. In older Excel it shows #NAME?. Use nested IF instead.

Formulas at a glance

=IFS(B2>=90,"A",B2>=80,"B",TRUE,"C")The pattern to follow

Example

Write the formula with IFS to give Ana a grade: A for 90+, B for 80+, C for 70+, otherwise F.

ABCDE
1StudentScoreGradeTempFeels
2Ana9285
3Ben8562
4Cleo7145
5Dev6678
6Eli7990
7Fay9858

Click C2 and type =IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"F"), then press Enter.

The answer is A.

When to use it

  • Letter grades
  • Rating levels like Gold, Silver, Bronze
  • Anywhere a nested IF gets long

Common mistakes

  • Getting #N/A for some rowsEnd with TRUE,"F" so every other value gets an answer.
  • Seeing #NAME?IFS needs Excel 2019 or newer, or Microsoft 365. Use nested IF in older Excel.
  • Putting the lowest test firstPut the highest test first.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

IFS in Excel: how it works, with examples · ExcelUnpack