The CHOOSE function

Returns the value at a numbered position in a list of arguments.

Syntax

CHOOSE(index_num, value1, [value2], ...)
index_num
Which value to return, from 1.
value1
The first value.
value2 (optional)
More values, up to 254.

Examples

B1=CHOOSE(2,"Small","Medium","Large")
AB
1Medium

In plain words: Take item number 2 from the list Small, Medium, Large.

B1=CHOOSE(3,10,20,30)
AB
130

Related functions