ReferenceFunctionsLogical (Extended) Functions
IFS
IFS: Returns the value for the first TRUE condition in condition-value pairs.
Summary
IFS(cond1, value1, cond2, value2, ...) evaluates left to right and short-circuits.
Remarks
- Arguments must be provided as pairs; odd argument counts return
#VALUE!. - Conditions accept booleans and numbers (
0FALSE, non-zero TRUE); blank is FALSE. - Text conditions return
#VALUE!; error conditions propagate. - If no condition is TRUE, returns
#N/A.
Examples
First matching condition wins
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
b
No conditions matched
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
#N/A
Related functions
FAQ
What errors can IFS return on structure issues?
Odd argument counts return #VALUE!, and no TRUE condition returns #N/A.
Runtime metadata
Category
Logical Ext
Signature
IFS(arg1, arg2, ... argN: Any)This function accepts a repeating argument pattern (min args: 2).
Arity
min 2, max variadic
Arguments
arg1Any · Scalar
Caps
PURESHORT_CIRCUIT
Source