⌨ Syntax
IFS(logical_test1,value_if_true1,[logical_test2,value_if_true2],...)
Arguments
logical_test1
(required)
— Condition that evaluates to TRUE or FALSE.
value_if_true1
(required)
— Result to be returned if logical_test1 evaluates to TRUE. Can be empty.
logical_test2...logical_test127
(optional)
— Condition that evaluates to TRUE or FALSE.
value_if_true2...value_if_true127
(optional)
— Result to be returned if logical_testN evaluates to TRUE. Each value_if_trueN corresponds with a condition logical_testN . Can be empty.
▶ Examples
=IFS(A2>89,"A",A2>79,"B",A2>69,"C",A2>59,"D",TRUE,"F")
=IFS(F2=1,D2,F2=2,D3,F2=3,D4,F2=4,D5,F2=5,D6,F2=6,D7,F2=7,D8)
=IFS([Something is True1,Value if True1,Something is True2,Value if True2,Something is True3,Value if True3)