CHOOSE

CHOOSE the (index+1)th argument

Synopsis

CHOOSE(index,value1,value2,…)

Arguments

index: positive number

value1: first value

value2: second value

Description

CHOOSE returns its (index+1)th argument.

Note

index is truncated to an integer. If index < 1 or the truncated index > number of values, CHOOSE returns #VALUE!

See also

IF.