ExcelFormulas logoExcelFormulas.
Ask AI
Logical & ConditionalVerified QA Tested

IFS.

Checks multiple conditions and returns a value corresponding to the first TRUE condition.

Category: Logical & Conditional
ExcelExcel 365Excel 2021Excel 2019Google Sheets

How it works.

The IFS function evaluates multiple conditions in order and returns the value corresponding to the first condition that is TRUE. This is much cleaner to write and read than nested IF statements.

💡 In simple terms.

Checks multiple conditions in order and returns the grade/value matching the first true condition.

Everyday Analogy

"Think of this like a grading machine checking grades in order: IF score is 90+ print A, IF 80+ print B, IF 70+ print C, otherwise print F."

Formula syntax.

Standard Excel Notation
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
Tip:Arguments wrapped in square brackets [like_this] are optional; all other arguments are required.

Formula arguments.

Every parameter accepted by the IFS function is detailed below.

logical_test1Required

The first condition to test.

Example value: C2>=90
value_if_true1Required

The value returned if the first condition is TRUE.

Example value: "A"
logical_test2Optional

The second condition to test.

Example value: C2>=80
value_if_true2Optional

The value returned if the second condition is TRUE.

Example value: "B"
logical_default_testOptional

Use TRUE to create a catch-all default condition.

Example value: TRUE
value_if_defaultOptional

The default value if no prior conditions are met.

Example value: "F"

Simple example.

Step-by-Step Scenario

Score Grade Labeler

Assign grades A, B, C, or F based on scores.

NameSubjectScoreGradeScale
BellaScience92—90+ = A
CalebScience81—80+ = B
DylanScience74—70+ = C
Applied Formula
=IFS(C2>=90, "A", C2>=80, "B", C2>=70, "C", TRUE, "F")
Expected Result:Calculated output

Evaluates IFS over the sample table cells, placing the verified output in cell D2:D6.

Formula generator.

Full Generator Wizard

Customize the argument fields below to generate a tailored IFS formula ready to paste directly into your worksheet.

Generated FormulaReady to copy

Expected result behavior.

Returns "Calculated output" based on sample evaluation criteria and active cell references.

Sample Output:Calculated output
Output Type:Text String

Best Practices

  • Always add a final condition of TRUE as a catch-all default at the end of the argument list (e.g. TRUE, "Other") so the formula doesn't return #N/A if no conditions match.

Common Mistakes

  • IFS evaluates conditions from left to right. Make sure your conditions are in the correct order (e.g. start with >90, then >80, then >70).
Compatibility Database

Platform & version compatibility.

Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.

Excel✓
Supported
Excel 365✓
Supported
Excel 2021✓
Supported
Excel 2019✓
Supported
Google Sheets✓
Supported
Microsoft Excel History & Version Availability

Introduced in Excel 2019 and Excel 365. Supported in Excel 2019, 2021, and 365.

Google Sheets Compatibility Notes

100% compatible with Google Sheets with identical condition/value syntax pairs.

Frequently asked questions.

Technical Q&A
Can I use IFS across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =IFS(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in IFS?↓

IFS evaluates conditions from left to right. Make sure your conditions are in the correct order (e.g. start with >90, then >80, then >70).

Does IFS work identically in Google Sheets?↓

Yes, IFS is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.