Excel INDEX
INDEX returns whatever sits at the row and column position you give it within a range.
A regional planner keeps monthly orders in a grid with months down the side and regions across the top. Reports often need one intersection, such as March in South. INDEX is the piece that fetches that cell, and it becomes far more powerful once MATCH supplies the positions.
Practice it nowHow to write it
=INDEX(array, row_num, [column_num])- array
- The range to read from.
- row_num
- The row inside that range, counting from 1.
- column_num
- Optional. The column inside that range.
Watch it work
Examples
March orders for South
=INDEX(B2:D5,3,2)105Third row of the grid, second column.
The fourth month in the list
=INDEX(A2:A5,4)AprA single column only needs a row number.
West in February
=INDEX(D2:D5,2)90Positions count from the start of the range, not from row 1 of the sheet.
Your turn
Return April orders for West using the grid B2:D5. Type your formula in F2.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Month | North | South | West | ||
| 2 | Jan | 120 | 95 | 80 | ||
| 3 | Feb | 135 | 110 | 90 | ||
| 4 | Mar | 150 | 105 | 99 | ||
| 5 | Apr | 142 | 125 | 101 | ||
| 6 |
Common mistakes
Using the sheet's row number.
Row 5 on the sheet is row 4 of B2:D5. Count from the top of your range.
Asking for a position outside the range.
Excel returns #REF!. Check the size of the range.
Good to know
- Typing fixed positions is rarely the goal. Let MATCH find them for you.
- A row number of 0 returns the whole column in current Excel.
- INDEX or OFFSET? OFFSET also returns a position but recalculates constantly. INDEX reads a range directly and is usually the lighter choice.
Excelio