Third item of a list
| A | |
|---|---|
| 1 | City |
| 2 | Boston |
| 3 | Denver |
| 4 | Austin |
| 5 | Seattle |
Formula: C1: =INDEX(A2:A5,3)
Result: Austin
Returns the 3rd cell of A2:A5, which is Austin.
Value at the intersection of a row and a column.
INDEX(array, row_num, [column_num])Example: =INDEX(C2:C100,MATCH(A2,B2:B100,0))
Available in: All versions
INDEX returns the value at a given row (and column) position inside a range. On its own it picks the nth item of a list; combined with MATCH it becomes a flexible lookup that can look in any direction and survives inserted columns.
| A | |
|---|---|
| 1 | City |
| 2 | Boston |
| 3 | Denver |
| 4 | Austin |
| 5 | Seattle |
Formula: C1: =INDEX(A2:A5,3)
Result: Austin
Returns the 3rd cell of A2:A5, which is Austin.
| A | B | C | |
|---|---|---|---|
| 1 | Region | Q1 | Q2 |
| 2 | East | 120 | 135 |
| 3 | West | 98 | 110 |
| 4 | North | 75 | 92 |
Formula: E1: =INDEX(A1:C4,3,3)
Result: 110
Row 3, column 3 of A1:C4 is the West Q2 figure.
| A | B | C | |
|---|---|---|---|
| 1 | Region | Q1 | Q2 |
| 2 | East | 120 | 135 |
| 3 | West | 98 | 110 |
| 4 | North | 75 | 92 |
Formula: E1: =INDEX(B2:C4,MATCH("North",A2:A4,0),MATCH("Q1",B1:C1,0))
Result: 75
The first MATCH finds the row of North (3), the second finds the column of Q1 (1), and INDEX returns the crossing.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =INDEX(B2:B6,MATCH(104,A2:A6,0))
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ID | Item | Price | Stock | Result | |
| 2 | 101 | Pen | 2.5 | 120 | Mug | |
| 3 | 102 | Notebook | 4 | 80 | ||
| 4 | 103 | Lamp | 25 | 15 | ||
| 5 | 104 | Mug | 7.5 | 40 | ||
| 6 | 105 | Backpack | 39 | 12 |
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page