Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use IFS and LET Instead of Nested IF Formulas in Excel

Simplify ordered conditions with IFS, name calculations with LET, and test thresholds and inputs using scoring and commission examples.

Table of Contents

Use IFS to list several condition-and-result pairs without deeply nested IF formulas. Add LET when naming inputs or repeated calculations makes the logic easier to understand. A simple two-result decision can still be clearer with IF.

Check compatibility before sharing: IFS is available in Excel 2019 and later supported editions, while LET requires Excel 2021, Excel 2024 or Microsoft 365. These examples use commas between arguments; your regional settings may require semicolons.

Replace a chain of IF tests with IFS

How to use IFS and LET functions instead of nested IF statements in Excel Picture 1How to use IFS and LET functions instead of nested IF statements in Excel Picture 2How to use IFS and LET functions instead of nested IF statements in Excel Picture 3How to use IFS and LET functions instead of nested IF statements in Excel Picture 4How to use IFS and LET functions instead of nested IF statements in Excel Picture 5

Suppose B2 contains a numeric score on a scale that can exceed 100. This example preserves the original article's strict “greater than” boundaries:

=IFS(B2>100,"Excellent",B2>80,"Good",B2>60,"Average",B2>40,"Poor",B2>20,"Very Poor",B2>=0,"Terrible",TRUE,"Check score")

IFS returns the result associated with the first TRUE condition. Put these thresholds in descending order. The final TRUE provides a fallback when no earlier condition matches.

ScoreResultWhy
101ExcellentAbove 100
100GoodAbove 80, but not above 100
80AverageAbove 60, but not above 80
0TerribleMatches the nonnegative band

These are illustrative labels, not a standard grading scheme. If your rule includes a boundary—for example, 80 or higher—use >=80 and update your tests accordingly.

Name the input with LET

How to use IFS and LET functions instead of nested IF statements in Excel Picture 6
=LET(score,B2,IF(NOT(ISNUMBER(score)),"Enter a number",IFS(score>100,"Excellent",score>80,"Good",score>60,"Average",score>40,"Poor",score>20,"Very Poor",score>=0,"Terrible",TRUE,"Check score")))

This version names B2 as score and rejects blanks or text before classifying it. Names defined by LET exist only inside that formula. Choose meaningful names that do not conflict with cell references.

Aliasing one cell mainly improves readability. LET's calculation benefit is more useful when you name an expression that would otherwise be repeated.

Example: name the parts of a commission calculation

The following is a fictional commission rule for demonstrating the functions, not payroll advice. B2 is sales, C2 is a territory label, and D2 is years of service. Assume numeric, nonnegative sales and tenure and a valid territory label.

=LET(
 sales,B2,
 territory,C2,
 tenure,D2,
 baseRate,0.05,
 salesBonus,IFS(sales>50000,0.02,sales>25000,0.01,TRUE,0),
 territoryBonus,IFS(territory="Premium",0.015,territory="Standard",0.01,TRUE,0.005),
 tenureBonus,IFS(tenure>5,0.01,tenure>2,0.005,TRUE,0),
 totalRate,baseRate+salesBonus+territoryBonus+tenureBonus,
 sales*totalRate
)

With sales of 60,000, Premium territory and tenure of six years, the rate is 5% + 2% + 1.5% + 1% = 9.5%, and the commission is 5,700. Exactly 50,000 does not qualify for the higher sales bonus because the test uses >, not >=.

How to use IFS and LET functions instead of nested IF statements in Excel Picture 7How to use IFS and LET functions instead of nested IF statements in Excel Picture 8

The final result is a commission amount, not total salary. The territory fallback accepts any label other than Premium or Standard; validate labels separately if typos should be errors rather than an “other” category.

Choose a maintainable formula

  • Use IF for a straightforward two-way decision.
  • Use IFS when an ordered list of tests is easy to audit.
  • Use LET to name meaningful inputs and reusable calculations.
  • Consider a lookup table when thresholds change regularly.
  • Test boundaries, blanks, invalid text and out-of-range inputs before filling down.

See IFS examples and Excel's logical functions for related formulas.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.