IFS Function
Check conditions in order and return the result of the first one that is true. The arguments are pairs of a condition and its result, up to 127 pairs; a number other than 0 counts as TRUE. When no condition is true, IFS returns #N/A; add TRUE as the last condition for a default result. A condition that is text, or a condition without a result, returns #VALUE!.
Syntax
IFS(test_or_expression, result, test_or_case, result)
Category: Logical. Minimum arguments: 2. Maximum arguments: 255.
Available for supported offline calculation.
Examples
=IFS(FALSE,1,TRUE,2)
The formula returns 2, the result of the first true condition.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.