Using IFS, it’s possible for you to test up to 127 conditions in a single Excel formula.

Although this number of tests is probably much more than you need, thefunctionis ideal for checking several conditions.

The formula then returns the value you specify for the first true condition in the statement.

IFS function with cell reference value results

Let’s look at a few basic examples.

Return Cell Reference Values

Here, the condition looks at the ID number in cell C2.

When the formula finds the matching condition, 1 through 5, it returns the corresponding name.

Nested IF statement for cell reference value results

We’ll displaya text resultbased on the percent complete in cell B2.

Note that the text values must be in quotes.

This is just one more reason to consider using the IFS function instead of a nested IF formula.

IFS function with number results

Microsoft goes on to say that nested IF statements can be hard to maintain.

This is another consideration for using the IFS function, especially if you’reworking on your spreadsheet with others.

For more, learn how to use the otherlogical functions in Excel like AND, OR, and XOR.

Nested IF statement for number results

IFS function with text results

Nested IF statement for text results