INDEX: picking a cell by position
The runners are in finishing order. Find who came in each place in E2:E6.
keyboard Typing formulas is easiest on a computer with a keyboard.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Runner | Time | Place | Runner | |||
| 2 | Oscar Patel | 19:46 | 4 | ||||
| 3 | Lena Fischer | 20:07 | 8 | ||||
| 4 | Grace Evans | 21:05 | 10 | ||||
| 5 | Jamal Novak | 21:20 | 7 | ||||
| 6 | Isla Kowalski | 21:47 | 1 | ||||
| 7 | Kofi Patel | 22:20 | |||||
| 8 | Tariq Dubois | 22:41 | |||||
| 9 | Daniel Okafor | 22:55 | |||||
| 10 | Zoe Jensen | 23:51 | |||||
| 11 | Elif Patel | 24:36 | |||||
| 12 | |||||||
| 13 | |||||||
| 14 | |||||||
| 15 |
How INDEX works
What does
INDEXdo?INDEXis the opposite ofMATCH. You give it a range and a position, and it gives back the value at that position.=INDEX(array,row_num) =INDEX($A$2:$A$11,3)counts 3 cells down fromA2and returns what is inA4.How are positions counted?
From the first cell of the range, which is position 1. Start the range at the header and the header becomes position 1, so every answer is one place too early.
What about tables with several columns?
Add a third part, the column:
=INDEX($A$2:$B$11,3,2)goes 3 rows down and 2 columns across, givingB4.Where does the position come from?
Here you type it, or it sits in a cell. Usually it comes from
MATCH, which finds the position of a value. Put the two together and you have a lookup that can return any column, even one to the left.
Know someone fighting with a spreadsheet? Send them this page.