Excel tutorial
/

Functions

Intermediate

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.

Книга1 - Excel
—☐✕
B8fx=ИНДЕКС(B2:D5;B7;D7)
ABCDE
1ProductJanFebMar
2Bread4201450480
3Milk310295330
4Yogurt1501702165
5Eggs260240275
6
7Row:3Column:2
8Result:170
9
Готово
Sales, units. Inside the range B2:D5 (1), row 3 and column 2 meet at C4 (2) — yogurt, February: 170

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.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
B8fx
ABCDE
1ProductJanFebMar
2Bread420450480
3Milk310295330
4Yogurt150170165
5Eggs260240275
6
7Row:3Column:2
8Result:
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.

Книга1 - Excel
—☐✕
B8fx
ABCDE
1ProductJanFebMar
2Bread420450480
3Milk310295330
4Yogurt150170165
5
Готово

3

Arguments: Array — B2:D5 (no headers, numbers only); Row_num — B7; Column_num — D7. Click OK.

Книга1 - Excel
—☐✕
B8fx
ABCDE
1ProductJanFebMar
2Bread420450480
3Milk310295330
4Yogurt150170165
5Eggs260240275
6
7Row:3Column:2
8Result:
9
ГотовоСреднее: 295,4167Количество: 12Сумма: 3545

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).

Книга1 - Excel
—☐✕
B8fx=ИНДЕКС(B2:D5;B7;D7)
ABCDE
1ProductJanFebMar
2Bread42014504802
3Milk310295330
4Yogurt150170165
5Eggs260240275
6
7Row:1Column:3
8Result: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.

Книга1 - Excel
—☐✕
E3fx=ИНДЕКС(B2:B7;СЧЁТ(B2:B7))
ABCDEF
1DateTakings, soumMeasureValue
201.09.20253 250 000First day3 250 000
302.09.20252 980 000Latest takings3 120 000
403.09.20253 410 000Latest date04.09.2025
504.09.20253 120 000
605.09.2025
706.09.2025
8
Готово
COUNT(B2:B7) = 4, so INDEX returns the 4th value — the takings for 04.09.2025

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.

Книга1 - Excel
—☐✕
B8fx=СУММ(ИНДЕКС(B2:D5;0;B7))
ABCDE
1ProductJanFebMar
2Bread420450480
3Milk310295330
4Yogurt150170165
5Eggs260240275
6
7Month No:2
8Month total:1155Milk, to date:605
9
ГотовоСреднее: 288,75Количество: 4Сумма: 1155
B8: the February column total (1,155). D8: =SUM(B3:INDEX(B3:D3,1,B7)) — milk for January–February (605): the range runs from B3 to the cell INDEX returned

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.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ProductJanFebMar
2Bread420450480
3Milk310295330
4Yogurt150170165
5Eggs260240275
6
7Row:3Column:2
8Result:Month total:
9
10
11
12
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

97 / 154