IFS Function in Microsoft Excel: Syntax, Examples & Compatibility
Learn how to return the first matching outcome from several ordered conditions in Microsoft Excel. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: return the first matching outcome from several ordered conditions in Microsoft Excel. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.
Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Microsoft Excel test results. A guide being published here does not certify every software release or file-import scenario.
Availability and version history
- Introduced: Announced February 23, 2016 as a new Office 365 function; the original numeric build is not established. Microsoft release announcement.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019.
- Checked: October 14, 2026; official IFS reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
List pairs of condition and return value, ordered by priority. A final TRUE, fallback pair is a common default.
Best use case: Return the first matching outcome from several ordered conditions.
Set up the example sheet
Suppose a quality-control report assigns grades A (90+), B (60–89) and C (below 60). Use literal scores first, then replace 72 with a cell reference.
Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.
Worked example 1: IFS with known input
=IFS(72>=90,"A",72>=60,"B",TRUE,"C")
Expected output: B.
The first condition fails and the second is true, so the selected result is B.
Worked example 2: a second IFS case
=IFS(45>=90,"A",45>=60,"B",TRUE,"C")
Expected output: C.
Both thresholds fail, so the unconditional final branch returns C.
Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.
Advanced example: test both sides of every threshold
Enter numeric scores 59.9, 60, 89.9 and 90 in A2:A5. In B2 enter and fill down:
=IFS(A2>=90,"A",A2>=60,"B",TRUE,"C")
The expected results are C, B, B, A. The comparisons include the boundary values 60 and 90. This is the illustrative classification rule in this guide, not a universal grading standard.
Reversing the first two conditions would classify 90 as B, because the 60 threshold would match first. IFS selects the first TRUE condition’s result; that statement does not promise lazy evaluation of every unused expression in a complicated formula.
Microsoft documents #N/A when no condition is TRUE. For example, =IFS(45>=90,"A",45>=60,"B") has no match. A final TRUE,"C" is a condition/result pair implementing a fallback, not a separate optional default argument.
The reference permits up to 127 condition/result pairs. Each test needs a corresponding result; a malformed pair is not an alternative way to provide a default. Keep input validation and classification separate when blanks, text or out-of-range values require different handling.
Practical advice and troubleshooting
When this formula helps: Place stricter or more specific tests first. IFS returns the first true branch, so ordering the 60+ test before the 90+ test would misclassify scores.
Important edge case: If none of the conditions is true and there is no fallback, the function can return an error. Supply TRUE as the last condition when a default is needed.
If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. An error that looks like a missing function may reflect a software version rather than incorrect data.
Compatibility and version considerations
IFS behaves similarly for the shown thresholds, but old Excel versions may not implement it and localized formulas may change separators.
Check your installed release for availability and dynamic-array support.
Microsoft’s dedicated reference specifies Office 2019 or a Microsoft 365 subscription for Windows/Mac availability. The 2016 subscription announcement does not establish perpetual Excel 2016 support.
Related guides and official documentation
-
Microsoft Excel documentation for IFS — function syntax and current vendor information.
Editorial verification: Direct function documentation reviewed October 14, 2026. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.