Function · Lookup

Excel CHOOSE function

The Excel CHOOSE function returns the item at a position in a list written in the formula. Position 2 of Net 15, Net 30, and Net 60 is Net 30.

All current Excel versions. Also in Excel for the web and Google Sheets.

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

CHOOSE
=CHOOSE(2,"Net 15","Net 30","Net 60")

Arguments

NameRequiredWhat to pass
index_numRequiredWhich item to return. 1 is the first value. A fraction is cut down to the integer below it.
value1RequiredThe first item. Later arguments are value2 onward, up to 254.

Examples

Payment terms picked by a term code of 2

=CHOOSE(B1,"Net 15","Net 30","Net 60")

Result Net 30

=CHOOSE(B1,"Net 15","Net 30","Net 60")B2
Terms
AB
1Code2
2TermsNet 30
A picture of the sheet, not a live calculator. A code of 2.9 would still return Net 30. CHOOSE cuts the fraction off.

CHOOSE picks from a list that lives in the formula. Position 1 is Net 15, position 2 is Net 30, and position 3 is Net 60. A term code of 2 returns Net 30. A fractional code is cut toward zero first, so 2.9 is also Net 30.

The list is not a range on the sheet. INDEX is the function that picks from cells. SWITCH is the one that matches a label such as TX rather than a position. An index of 0 or 4, with only three items, is #VALUE!.