Excel function

CHOOSEfunction

Returns the value at the position given by an index number.

All versions
=CHOOSE(2, "Spring", "Summer", "Autumn", "Winter")

Value 16 chars

1S
2p
3r
4i
5n
6g

Value 26 chars

1S
2u
3m
4m
5e
6r

Value 36 chars

1A
2u
3t
4u
5m
6n

Value 46 chars

1W
2i
3n
4t
5e
6r

Click a value row and its position becomes index_num. Try 5 for index_num. Try breaking it on purpose to see the errors.

Result

Summer

index_num

Which value to pick, from 1 up to the number of values. Decimals are dropped.

value1

Returned when index_num is 1.

value2

Returned when index_num is 2.

value3

Returned when index_num is 3.

value4

Returned when index_num is 4.

What is the CHOOSE function?

=CHOOSE(index_num, value1, [value2], ...)

CHOOSE returns the value at the position given by a number: 1 returns value1, 2 returns value2.

Use it to turn a weekday number into a day name or a quarter number into a quarter name. An index below 1 or above the number of values gives #VALUE!.

Arguments

index_num
Which value to pick. Decimals are dropped.
value1, value2, ...
The list of values. Numbers, text, cells and ranges are all allowed.

CHOOSE examples

  1. Example 1. Pick a season

    =CHOOSE(2, "Spring", "Summer", "Autumn", "Winter")

    "Summer".

  2. Example 2. Day name

    =CHOOSE(WEEKDAY(A2), "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat")

    Picks the day name using the number from WEEKDAY.

  3. Example 3. Pick a range

    =SUM(CHOOSE(2, A1:A10, B1:B10))

    As in Microsoft's example, adds the second range, B1:B10.

Common mistakes

FAQ

Pick by a condition?
Use IF, IFS or SWITCH.
How many values?
According to Microsoft, up to 254.