1. Home
  2. Functions
  3. Lookup and reference
  4. CHOOSE

CHOOSE function

Returns the value in a list at the given position.

Syntax

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

Arguments

ArgumentRequiredDescription
index_numRequiredWhich value to return, from 1
value1RequiredThe first value
value2OptionalMore values

How to use CHOOSE

CHOOSE takes 2 required arguments and 1 optional argument, and accepts more values in the same pattern. Type =CHOOSE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=CHOOSE(2, "a", "b", "c")Result "b"
=CHOOSE(4, "a", "b")Result #VALUE!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.