Logic
CHOOSE
Returns a value by its number.
Syntax
CHOOSE(index_num, value1, value2, …)Example: =CHOOSE(2,"Q1","Q2","Q3","Q4")
Available in: All versions
Try it
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =CHOOSE(2,A2,A3,A4)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Score | Extra credit | Attempts | Result | |
| 2 | Ann | 92 | Yes | 2 | Bob | |
| 3 | Bob | 74 | No | 0 | ||
| 4 | Cy | 58 | Yes | 3 | ||
| 5 | Dee | 81 | No | 1 | ||
| 6 | Eli | 66 | 2 |
Result in F2: Bob