Formulas based on IFS are shorter and easier to read and write.
Conditions are provided to the IFS function as test/value pairs, and IFS can handle up to 127 conditions.
For this reason, it is important to consider the order in which conditions appear.
For better readability, you canadd line breaksto an IFS formula as shown above.
Note: the IFS function does not provide an argument for a default value.
See Example #3 below for a workaround.
The grade associated with the first test to return TRUE is returned.
When A1 contains any other value (including when A1 is empty) IFS will return “Invalid”.
Without this final condition, IFS will return #N/A when a code is not recognized.
Note: IFS is a new function available inExcel 365and Excel 2019.
Both functions make it easier to write (and read) a formula with many conditions.
In addition, SWITCH can accept a default value.
However, SWITCH is limited to exact matching.
More than one condition can be tested by nesting IF functions.
The values provided to CHOOSE can include references.
When no match is found, SWITCH can return an optional default value.
MATCH supports approximate and exact matching, andwildcards(* ?)
Often, MATCH is combined with the…