IFS Function in Excel — Multiple Conditions Without Nested IF
Home› Functions› Logical› IFS
⚡ Modern Excel 2016+

IFS function — multiple conditions without nested-IF pain

IFS tests up to 127 conditions in order and returns the value for the first one that's TRUE. Cleaner syntax than nested IF, no parenthesis counting, and much easier to modify later.

TL;DR

=IFS(condition1, value1, condition2, value2, ..., TRUE, fallback). Tests conditions top-down, returns the first match. Always end with TRUE, fallback as a catch-all — otherwise you get the not-available error when nothing matches.

Syntax

=IFS(logical_test1, value1, [logical_test2, value2], [logical_test3, value3], ..., [TRUE, fallback])
ArgumentRequired?What it does
logical_test1REQUIREDThe first condition to test. Any expression that evaluates to TRUE or FALSE, e.g. A1>90, B1="APAC", ISBLANK(C1).
value1REQUIREDThe value to return if logical_test1 is TRUE. Can be text, number, cell reference, or nested formula.
logical_test2, value2optionalThe second condition-value pair. Only evaluated if logical_test1 was FALSE.
... up to 127 pairsoptionalExcel supports up to 127 condition-value pairs (254 total arguments).
TRUE, fallbackoptional but recommendedCatch-all pattern. TRUE is always TRUE, so this pair fires when nothing above matched. Without it, unmatched cases return the not-available error.

Example 1 — Letter grades from a score

Example 1

Convert a numeric score in A1 to a letter grade

Test the highest threshold first, then work downward. Once a condition is TRUE, IFS stops and returns that value:

=IFS(A1>=90, "A", A1>=80, "B", A1>=70, "C", A1>=60, "D", TRUE, "F")
For A1 = 87: "B" (matches A1>=80, first TRUE condition)
Why order matters

If you tested A1>=60 first, EVERY passing score would return "D" because IFS stops at the first match. Always order from strictest to loosest condition.

Example 2 — US federal tax brackets

Example 2

Return the tax rate for an income amount

Using 2024 single-filer brackets. Test the lowest ceiling first, cascade upward:

=IFS(A1<=11600, "10%", A1<=47150, "12%", A1<=100525, "22%", A1<=191950, "24%", TRUE, "32%+")
For A1 = 75000: "22%" (first to match A1<=100525)

Example 3 — Tiered bulk-discount pricing

Example 3

Discount tier based on order quantity

Test the highest threshold first — biggest discount to biggest order:

=IFS(A1>=1000, "20% off", A1>=500, "15% off", A1>=100, "10% off", A1>=10, "5% off", TRUE, "No discount")
For A1 = 250: "10% off" (matches A1>=100)

Example 4 — Region-based shipping costs

Example 4

Return shipping cost based on region text in A1

Text comparisons work exactly like numeric ones:

=IFS(A1="US", 5, A1="EU", 12, A1="APAC", 18, A1="LATAM", 22, TRUE, 25)
For A1 = "APAC": 18
When to switch to a lookup table instead

If you have more than about 8-10 regions, put them in a two-column table (regions in one column, costs in another) and use =XLOOKUP(A1, regions, costs, 25). Easier to add new regions without editing every IFS formula.

Example 5 — Support ticket priority from age

Example 5

Auto-classify ticket priority based on days open

With days-open in A1, escalate priority as time passes:

=IFS(A1>14, "Critical", A1>7, "High", A1>3, "Medium", A1>0, "Low", TRUE, "New")
For A1 = 8: "High" (matches A1>7)

Example 6 — Compound conditions with AND / OR

Example 6

Approve a loan based on income AND credit score

Wrap conditions in AND() or OR() for compound tests. Income in A1, credit score in B1:

=IFS(AND(A1>=100000, B1>=750), "Prime", AND(A1>=60000, B1>=680), "Approved", AND(A1>=40000, B1>=620), "Conditional", TRUE, "Declined")
For A1 = 75000, B1 = 720: "Approved" (both AND conditions met)

Example 7 — Handling blank cells and errors

Example 7

Skip blanks and mark them separately

Check for blanks or errors first, before running your logic:

=IFS(ISBLANK(A1), "Missing", ISERROR(A1), "Error", A1>100, "High", A1>50, "Medium", TRUE, "Low")
For blank A1: "Missing" (blank check runs before value check)

IFS vs nested IF — visual comparison

Same logic, two syntaxes

Grading with nested IF:
=IF(A1>=90,"A",IF(A1>=80,"B",IF(A1>=70,"C",IF(A1>=60,"D","F"))))

Grading with IFS:
=IFS(A1>=90,"A",A1>=80,"B",A1>=70,"C",A1>=60,"D",TRUE,"F")

Both return the same result. IFS drops 4 opening + 4 closing parentheses, reads left-to-right instead of stair-stepped, and is much easier to insert a new tier into.

Common errors and fixes

ErrorWhy it happensHow to fix
#N/A No condition matched and no catch-all was provided. Every IFS needs a fallback. Add TRUE, "your fallback" as the last pair. TRUE is always TRUE so it fires when nothing above matched.
#VALUE! One of the logical_test arguments doesn't evaluate to TRUE or FALSE — often because you accidentally passed a text value where a comparison should be. Check every logical_test is a comparison (uses =, >, <, >=, <=, or <>) or a function that returns a boolean (like AND, OR, ISBLANK, ISERROR).
#NAME? Your Excel version doesn't have IFS. Only Excel 2016+ and Google Sheets support it. Fall back to nested IF: =IF(cond1, val1, IF(cond2, val2, IF(cond3, val3, fallback))). Works in every Excel version back to Excel 5.
Wrong result Conditions are ordered incorrectly — a loose condition (like A1>0) matches before your strict conditions get a chance. Reorder from strictest to loosest. In grades: check >=90 first, not >=60 first. In quantity discounts: check >=1000 first, not >=10.
Odd number of arguments IFS always needs pairs — every condition MUST have a value. If you write =IFS(A1>90, "A", A1>80) without a value after the second condition, Excel refuses to accept. Count your arguments — the total must be even. Every logical_test needs a value beside it.

Version compatibility

Excel versionSupports IFS?Notes
Excel 365 (subscription)✅ YesFull support.
Excel 2021 / 2019 / 2016✅ YesAvailable in every version 2016+.
Excel 2013 / 2010 / 2007❌ NoUse nested IF.
Excel for the Web✅ YesWorks in browser Excel.
Excel for Mac (2016+)✅ YesSame behavior as Windows.
Google Sheets✅ YesIdentical syntax.
LibreOffice Calc✅ YesSupported (may require the _xlfn.IFS prefix for openpyxl-generated files).
Sharing with older Excel users?

If any collaborators use Excel 2013 or older, use nested IF. Their Excel will show #NAME? for IFS. INDEX/MATCH with a lookup table is often the cleaner backward-compatible solution for many-branch logic.

Common patterns

Always end with TRUE as your catch-all

The single most common IFS mistake is forgetting the fallback. Every production IFS should end with TRUE, "your default value". This turns the "no match" case into a clean default instead of a scary error code.

Order from strictest to loosest

IFS returns the FIRST match, not the BEST match. Test >=90 before >=80, test =1000 before >100. Getting the order wrong is the second-most common IFS mistake.

Switch to XLOOKUP for many branches

If you're writing IFS with more than 8 conditions, consider a two-column lookup table with XLOOKUP or VLOOKUP. It's easier to add new cases (just add a row) and easier to hand off to teammates.

Related functions

📥 Download the practice workbook

Live IFS formulas · grades, tax brackets, tier pricing, shipping, ticket priority · nested-IF equivalents

modern-formulas-2026.xlsx

Frequently asked questions

When was IFS added to Excel?

IFS was added in Excel 2016 (both perpetual license and Microsoft 365 subscription). It also works in Google Sheets and LibreOffice. Excel 2013 and older do not have it — you'll see the name error if you try to use it there.

How many conditions can IFS handle?

IFS supports up to 127 condition-value pairs (254 total arguments). In practice, if you're using more than 10 conditions, consider using a lookup table with XLOOKUP or VLOOKUP — it's easier to maintain and much easier for teammates to understand.

What happens if no conditions match in IFS?

You get the not-available error. To avoid this, always end your IFS with TRUE, "fallback". The TRUE is a catch-all that fires when nothing above matched. Example: =IFS(A1>90, "A", A1>80, "B", TRUE, "F") returns "F" for anything below 80.

Is IFS better than nested IF?

For readability and maintenance, yes — you write conditions in a flat sequence instead of stacking IFs. Adding a new tier is a matter of inserting one condition-value pair, not restructuring the whole formula. For compatibility, nested IF is safer (works in every Excel version). Choose IFS when your workbook only needs to work in Excel 2016+.

Can IFS work with text conditions?

Yes. Any expression that returns TRUE or FALSE works — including text comparisons like A1="APAC", A1<>"", or LEFT(A1,3)="INV". Just remember to wrap text values in double quotes.

Can I nest IFS inside another IFS?

Yes, but it's usually a sign you should redesign. If you find yourself nesting IFS, consider whether a lookup table would be cleaner. If you truly need multi-dimensional logic, IFS(AND(cond1, cond2), value...) with compound AND/OR tests is usually more readable than nesting.