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.
Syntax =CHOOSE(index_num, value1, [value2], ...)
=CHOOSE(2,"Net 15","Net 30","Net 60")Arguments
| Name | Required | What to pass |
|---|---|---|
| index_num | Required | Which item to return. 1 is the first value. A fraction is cut down to the integer below it. |
| value1 | Required | The 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
| A | B | |
|---|---|---|
| 1 | Code | 2 |
| 2 | Terms | Net 30 |
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!.