CHOOSE Function
Return one value from a list of values by its position. index_num selects the value: 1 returns value1, 2 returns value2 and so on, for up to 254 values. A fraction is truncated to an integer. An index less than 1 or greater than the number of values, or text that is not a number, returns #VALUE!.
Syntax
CHOOSE(index_num, value1, value2)
Category: Lookup. Minimum arguments: 2. Maximum arguments: 255.
Available for supported offline calculation.
Examples
=CHOOSE(2,"a","b")
The formula returns "b", the second value.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.