IFS Function
A simpler way to write multiple IF statements without nesting.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| logical_test1 | The first condition to evaluate. | Required |
| value_if_true1 | The value to return if logical_test1 is true. | Required |
| logical_test2, value_if_true2 | Additional test/value pairs (optional). | Optional |
Basic Example
Assign a grade based on a score
=IFS(A2>=90, "A", A2>=80, "B", A2>=70, "C", A2<70, "D")Returns the first grade where the condition is true. If A2 is 85, returns "B".
Advanced Examples
Example 1: Nested conditions with default
Commission ratesReturn a commission rate with a fallback
=IFS(A2>=10000, 0.1, A2>=5000, 0.07, A2>0, 0.05, TRUE, 0)How IFS Works
IFS evaluates each logical test from left to right. As soon as a test is true, it returns the corresponding value. If no test is true and no default TRUE condition is provided, it returns #N/A.
Important Notes & Limitations
Requires Excel 2019 or Excel 365; not available in older versions.
No explicit value_if_false argument; use a default TRUE condition.
Stops at the first true condition.
Common Errors & Fixes
#N/A errorNo condition is true and no default condition is provided.Fix: Add TRUE, "default value" as the last pair.
#VALUE! errorA logical test does not evaluate to TRUE/FALSE.Fix: Ensure tests return boolean values.
Download Practice File
IFS
ifsPractice IFS with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the IFS function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps
Related Tutorials
IFS Function with Multiple Conditions in Excel
The IFS function multiple conditions pattern replaces stacked nested IFs. Learn argument order, AND/OR tests, TRUE fallbacks and how to fix the #N/A error.
Nested If Alternatives
Long nested IF formulas are hard to read and easy to break. Discover the best nested IF alternatives in Excel and Google Sheets — IFS, lookup tables, and XLOOKUP.