Excel IFS Function: Multiple Conditions, Syntax and Examples

Excel IFS function tutorial cover

What is the IFS function in Excel?

IFS tests multiple logical conditions in sequence. It returns the value associated with the first condition that evaluates to TRUE. Compared with deeply nested IF functions, IFS can make grading, commission and classification formulas easier to read. IFS is available in Microsoft 365 and modern Excel versions, including Excel 2019 and later.

IFS syntax

=IFS(logical_test1,value_if_true1,[logical_test2,value_if_true2],...)

Each logical test must be followed by the result to return if TRUE. Excel evaluates the tests in the order listed and stops at the first TRUE test. If none are TRUE, IFS returns #N/A unless you provide a catch-all condition such as TRUE,"Other".

Example 1: Grade students using score bands

For a score of 74 in B2, use:

=IFS(B2>=80,"A",B2>=60,"B",B2>=40,"C",TRUE,"D")

Result: B. Put the largest score threshold first. If you start with B2>=40, a score of 74 would return C before the 60-point rule is reached.

Example 2: Sales commission tiers

Suppose B2 contains monthly sales of 120,000 and commission rates are 8% for sales at least 100,000, 5% for sales at least 50,000, and 2% otherwise.

=IFS(B2>=100000,B2*8%,B2>=50000,B2*5%,TRUE,B2*2%)

Result: 9,600. This example applies one rate to the full sales total, not progressive rates by bracket.

Example 3: Classify inventory levels

If C2 is the number of items currently in stock:

=IFS(C2=0,"Out of stock",C2<10,"Low stock",TRUE,"Available")

When C2 is 7, the result is Low stock. To treat negative stock balances differently, insert a rule for values below zero before the zero test.

Example 4: Return status from a percentage

Let D2 hold a customer satisfaction score as a percentage. Use:

=IFS(D2>=90%,"Excellent",D2>=75%,"Good",D2>=50%,"Needs work",TRUE,"Critical")

If D2 is 82%, the result is Good. Format D2 as a percentage or enter a decimal such as 0.82.

Example 5: Handle empty input

=IFS(B2="","Not entered",B2>=80,"High",B2>=50,"Medium",TRUE,"Low")

Checking for blank input first prevents unentered values from being classified as Low.

Example 6: Using cell references for thresholds

If E2 contains the high threshold 80 and F2 the medium threshold 60:

=IFS(B2>=E2,"High",B2>=F2,"Medium",TRUE,"Low")

Keep E2 greater than F2 and validate the inputs to avoid overlapping or confusing classifications.

IFS versus nested IF

A nested IF can provide a final fallback naturally through the last value_if_false. IFS uses test/result pairs, so an explicit TRUE condition is a practical default. Both can categorize values, but IFS is generally easier to scan when there are many mutually exclusive rules.

Common IFS errors and fixes

  • #N/A: no test was TRUE. Add a final TRUE,"Other" condition if appropriate.
  • Wrong result: the first matching rule wins; order thresholds carefully.
  • #VALUE!: confirm logical tests evaluate to TRUE or FALSE and that tests/results are paired.
  • Version support: older Excel versions may not recognize IFS; nested IF can be a fallback.
  • Overlapping criteria: choose a clear precedence for competing conditions.

Frequently asked questions

Does IFS check every condition?

It evaluates conditions in order and returns the result for the first TRUE condition.

Is TRUE required at the end?

No, but without a matching TRUE condition the formula returns #N/A.

When is IFS better than IF?

IFS is useful when one value needs to be assigned to one of several categories.

Practice exercise

Build a student grading sheet and classify scores as A (80+), B (60–79), C (40–59), or D (below 40). Reorder the rules to see why evaluation order matters.

Related Excel tutorials

Continue learning with Module 3: Excel Functions, IFERROR examples, or explore related conditions and lookup functions across the Excel tutorial library.

Official reference

For exact syntax and version-specific information, consult Microsoft Excel Support.