If you’ve ever found yourself creating complex nested IF statements in Excel, there’s a better way. The IFS function allows you to test multiple conditions in a single, readable formula, making your spreadsheets cleaner and easier to maintain.

The Problem with Nested IF Statements

Let’s say you’re working with course feedback data where ratings need to be converted from numbers (1-5) to descriptive text:

  • 5 = Excellent
  • 4 = Very Good
  • 3 = Good
  • 2 = Poor
  • 1 = Very Poor

Using traditional nested IF statements, your formula would look like this:

=IF(B2=5,"Excellent",IF(B2=4,"Very Good",IF(B2=3,"Good",IF(B2=2,"Poor",IF(B2=1,"Very Poor","Invalid Score")))))

While this works, it’s cumbersome, difficult to read and challenging to edit or troubleshoot.

Enter the IFS Function

The IFS function simplifies this dramatically:

=IFS(B2=5,"Excellent",B2=4,"Very Good",B2=3,"Good",B2=2,"Poor",B2=1,"Very Poor")

The function works by testing each condition from left to right, returning the corresponding value for the first condition that evaluates to TRUE.

Handling Invalid Values

What happens if none of your conditions are met? By default, IFS returns an #N/A error. To handle this gracefully, add TRUE as your final condition with a default value:

=IFS(B2=5,"Excellent",B2=4,"Very Good",B2=3,"Good",B2=2,"Poor",B2=1,"Very Poor",TRUE,"Invalid Score")

Alternative Functions: SWITCH and CHOOSE

Excel offers two other functions for multiple-condition scenarios:

SWITCH Function:

=SWITCH(B2,5,"Excellent",4,"Very Good",3,"Good",2,"Poor",1,"Very Poor","Invalid Score")

CHOOSE Function:

=CHOOSE(B2,"Very Poor","Poor","Good","Very Good","Excellent")

Both SWITCH and CHOOSE work well for exact matches but can’t handle comparative operators like greater than or less than.

Which Should You Use?

The choice often comes down to personal preference and your specific needs:

  • IFS: Best for multiple conditions, especially when using comparative operators
  • SWITCH: Great for exact value matching with clear syntax
  • CHOOSE: Useful when working with position-based selections
  • Nested IF: Still valid but generally harder to maintain

The key is choosing the function that makes your formulas most readable and maintainable for your specific use case.

Want to see these functions in action? Check out the video below

Download a copy of the file(s) used in this video: https://share.zight.com/p9u9eez7