IFS works through a list of conditions in order and returns the result that belongs to the first one that is true. It reads top to bottom, so it is easier to follow than IFs nested inside each other.
=IFS(B2>=90, "Excellent", B2>=75, "Good", B2>=60, "Fair", TRUE, "Poor")
The formula checks the score against 90, then 75, then 60. The last test is simply TRUE, which is always true, so it works as the "everything else" case.
The arguments
IFS takes pairs: a test, then the value to return if that test is true. You can give up to 127 pairs. The rules:
- Tests are checked in order, and IFS stops at the first true one. Put the most restrictive test first. With
>=60 before >=90, a score of 95 would stop at the first test. - If no test is true, IFS returns
#N/A. IFS has no built-in "else" argument, so end the list with TRUE and a default result. - An odd number of arguments is an error. Excel complains that you have entered too few arguments.
- A test must evaluate to TRUE or FALSE. A test that returns an error makes IFS return that error, even if a later test would have been true.
IFS compared with the alternatives
IFS is mostly about readability. Compared with nested IF, the formula is flatter, and each test sits next to its result. Compared with SWITCH, IFS handles ranges and conditions, while SWITCH compares one value with exact matches. Compared with a lookup table, IFS puts the thresholds inside the formula. If the thresholds are used in more than one place, or change often, put them in cells and use XLOOKUP with match mode -1, or VLOOKUP with an approximate match. Then there is one place to edit.
Compatibility
IFS was added in Excel 2019. If the workbook may open in Excel 2016 or earlier, use nested IF or a lookup instead, because IFS returns #NAME? there.
Errors
If you see #N/A, none of the tests were true. Add a final TRUE pair, or check that your thresholds cover the whole range of values, including values beyond the last band.