How to use INDEX in Excel: get a value by row and column number
INDEX returns the value where a given row and column meet. One- and two-dimensional examples, the last value in a list, INDEX as a reference, and traps.
INDEX takes a value from a table by coordinates: “row 3, column 2”. Think of a cinema ticket — know the row and seat number and you find your place right away.
INDEX doesn’t search for anything itself — you supply the position. On its own it handles tasks like “the n-th item” or “the last value entered”, and together with MATCH it forms Excel’s most powerful and reliable lookup formula.
Example: from a shop’s monthly sales table, get the yogurt sales for February.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar | |
| 2 | Bread | 4201 | 450 | 480 | |
| 3 | Milk | 310 | 295 | 330 | |
| 4 | Yogurt | 150 | 1702 | 165 | |
| 5 | Eggs | 260 | 240 | 275 | |
| 6 | |||||
| 7 | Row: | 3 | Column: | 2 | |
| 8 | Result: | 170 | |||
| 9 |
Syntax
=ИНДЕКС(array; row_num; [column_num])
array— the range to take the value from.row_num— the row number inside the range, counted from 1 (not the sheet row number!).column_num— the column number inside the range. If the range is a single column, leave it out:=ИНДЕКС(B2:B7;4).
If you put 0 as row_num or column_num, INDEX returns the whole column or the whole row — handy at the pro level.
Writing INDEX step by step
1
Select the result cell (B8) and click Формулы → Ссылки и массивы → INDEX.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar | |
| 2 | Bread | 420 | 450 | 480 | |
| 3 | Milk | 310 | 295 | 330 | |
| 4 | Yogurt | 150 | 170 | 165 | |
| 5 | Eggs | 260 | 240 | 275 | |
| 6 | |||||
| 7 | Row: | 3 | Column: | 2 | |
| 8 | Result: | ||||
| 9 |
2
Excel asks you to pick one of INDEX’s two forms. Choose the first — array, row_num, column_num. The second (reference) works with several separate ranges and is rarely needed.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar | |
| 2 | Bread | 420 | 450 | 480 | |
| 3 | Milk | 310 | 295 | 330 | |
| 4 | Yogurt | 150 | 170 | 165 | |
| 5 |
3
Arguments: Array — B2:D5 (no headers, numbers only); Row_num — B7; Column_num — D7. Click OK.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar | |
| 2 | Bread | 420 | 450 | 480 | |
| 3 | Milk | 310 | 295 | 330 | |
| 4 | Yogurt | 150 | 170 | 165 | |
| 5 | Eggs | 260 | 240 | 275 | |
| 6 | |||||
| 7 | Row: | 3 | Column: | 2 | |
| 8 | Result: | ||||
| 9 |
4
Change the numbers in B7 and D7: 1 and 3 give bread sales in March (480). Counting always starts at the top-left cell of the range (B2).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar | |
| 2 | Bread | 4201 | 450 | 4802 | |
| 3 | Milk | 310 | 295 | 330 | |
| 4 | Yogurt | 150 | 170 | 165 | |
| 5 | Eggs | 260 | 240 | 275 | |
| 6 | |||||
| 7 | Row: | 1 | Column: | 3 | |
| 8 | Result: | 480 | |||
| 9 |
Example: the first and last value in a list
A cashier enters the daily takings, and the list grows every day. You want a cell that shows the most recent amount. The solution: COUNT counts how many numbers have been entered, and INDEX takes the value at that position:
=ИНДЕКС(B2:B7;СЧЁТ(B2:B7))
Add a new day and the result updates by itself. The one condition: no blank cells in the middle of the list.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Date | Takings, soum | Measure | Value | ||
| 2 | 01.09.2025 | 3 250 000 | First day | 3 250 000 | ||
| 3 | 02.09.2025 | 2 980 000 | Latest takings | 3 120 000 | ||
| 4 | 03.09.2025 | 3 410 000 | Latest date | 04.09.2025 | ||
| 5 | 04.09.2025 | 3 120 000 | ||||
| 6 | 05.09.2025 | |||||
| 7 | 06.09.2025 | |||||
| 8 |
Pro level: INDEX returns a reference
INDEX actually returns a cell reference, not just a value. That sets it apart from other lookup functions:
- A whole column or row.
=СУММ(ИНДЕКС(B2:D5;0;2))sums the February column. 0 means “all rows”. - A dynamic range.
=СУММ(B3:ИНДЕКС(B3:D3;1;B7))totals milk from the start of the year up to the month in B7. Change B7 and the range grows or shrinks. - Instead of OFFSET. OFFSET can build the same dynamic range, but it recalculates on every change (it is volatile). INDEX recalculates only when needed — noticeably faster in large files.
And most importantly — INDEX + MATCH: MATCH finds the position, INDEX fetches the value. This pair looks left and in two dimensions.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar | |
| 2 | Bread | 420 | 450 | 480 | |
| 3 | Milk | 310 | 295 | 330 | |
| 4 | Yogurt | 150 | 170 | 165 | |
| 5 | Eggs | 260 | 240 | 275 | |
| 6 | |||||
| 7 | Month No: | 2 | |||
| 8 | Month total: | 1155 | Milk, to date: | 605 | |
| 9 |
Try it in the simulator
Type =ИНДЕКС(B2:D5;B7;D7) in B8 and change the numbers in B7 and D7. Then type =СУММ(ИНДЕКС(B2:D5;0;D7)) in D8 to get the total sales for the chosen month.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar | ||||||||||||||||||||
| 2 | Bread | 420 | 450 | 480 | ||||||||||||||||||||
| 3 | Milk | 310 | 295 | 330 | ||||||||||||||||||||
| 4 | Yogurt | 150 | 170 | 165 | ||||||||||||||||||||
| 5 | Eggs | 260 | 240 | 275 | ||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | Row: | 3 | Column: | 2 | ||||||||||||||||||||
| 8 | Result: | Month total: | ||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.