IFS and nested IF both check conditions in order and return the result for the first test that is TRUE. The difference is layout. IFS puts every test and result in one flat list, which is easier to read and edit. The trade-off is that IFS needs a newer version of Excel, and a file that uses it can show errors in an older one.
The same grade formula, two ways
Here is a grade formula with a score in A2, using nested IF. The nested version is built layer by layer in how to write nested if formulas in excel:
=IF(A2>=90, "A", IF(A2>=80, "B", IF(A2>=70, "C", "F")))
And the same logic with IFS:
=IFS(A2>=90, "A", A2>=80, "B", A2>=70, "C", TRUE, "F")
IFS takes pairs of arguments: a test, then the result to return if that test is TRUE. Excel reads them from left to right. Both formulas return the same grade for each score.
The TRUE catch-all
The last pair in the IFS formula uses TRUE as its test. TRUE is always true, so it catches anything that didn’t match an earlier test. It plays the same role as the final value in a nested IF.
It’s a good habit to end every IFS formula with a TRUE pair, for the reason in the next section.
What happens when nothing matches
The two functions handle leftover cases differently:
- Nested IF returns its final value_if_false. If that last argument is left out, it returns FALSE.
- IFS returns #N/A if no test is TRUE and there is no TRUE catch-all.
A blank score counts as 0 in these comparisons, so a blank cell reaches the last result. If that isn’t the outcome you want, test for the blank cell first.
Which Excel versions have IFS
IFS is available in Excel 2019, Excel 2021, Microsoft 365 and Excel for the web. Older versions, such as Excel 2016 without a Microsoft 365 subscription, don’t include it. In those versions, an IFS formula shows a #NAME? error.
If a workbook will be shared with people on older versions, nested IF is the safer choice, because it works in every version.
Which one to pick
As a rule of thumb:
- For two or three tests, or for a file that others open in older versions, a nested IF is fine.
- For four or more tests in a file that everyone uses on a recent version, IFS is usually easier to read.
- When one value is matched against a list of fixed options, SWITCH often reads best. See excel switch function example.
- When the cut-offs or options change often, store them in a table and use a lookup instead of writing them into the formula.
The choice affects readability more than results, so pick the one that the people who maintain the sheet can read.
Both need the tests in the right order
Neither function reorders the tests for you. With “>=” thresholds, check the highest first. A score of 95 tested against 70 first returns “C” in either version.
Combining conditions in IFS
Each IFS test can use AND or OR, the same way a nested IF test can. For example, AND(B2="Yes", C2>=50) is a valid test inside IFS. The pattern is covered in how to use and or with if in excel.