describe
The IFS function checks whether one or more conditions are met and returns the value corresponding to the first TRUE condition. This feature has been added in Excel 2016.
grammar
IFS (logical_test1, value_if_true1, [logical_test2, value_if_true2], [logical_test3, value_if_true3]…)
debate
Argument | describe | Required/Optional |
---|---|---|
logical_test1 | Condition that evaluates to TRUE or FALSE. | Required |
value_if_true1 | Result to be returned if logical_test1 evaluates to TRUE. Can be empty. | Required |
logical_test2…logical_test127 | Condition that evaluates to TRUE or FALSE. | Optional |
value_if_true2…value_if_true127 | Result to be returned if logical_testN evaluates to TRUE. Each value_if_trueN corresponds with a condition logical_testN. Can be empty. | Optional |
Notes
-
Since functions are limited to 254 parameters, up to 127 pairs of conditional and output parameters can be used.
-
To specify a default output, enter an always-true condition, such as TRUE or 1=1, for your final logical test parameter. If other conditions are not met, the corresponding value will be returned.
-
If a logical test argument is provided without a corresponding value_if_true, IFS will display the typical "You entered too few arguments for this function" error message.
-
If the logical_test parameter is evaluated and resolves to a value other than TRUE or FALSE, IFS returns a #VALUE! error.
-
If the TRUE condition is not found, IFS returns a #N/A! error.
applicability
Excel 2016