Excel tutorial
/

Functions

Advanced

How to use INDIRECT in Excel: build a reference from text

INDIRECT turns text such as “January!B6” into a real reference: summaries across monthly sheets, dependent drop-down lists. Traps and faster alternatives.

INDIRECT turns text into a reference. You build the text "January!B6" in a cell, and INDIRECT goes to cell B6 on the January sheet and brings back its value.

When you need it:

  • A separate sheet for each month (January, February, March…) and one summary sheet — the month name sits in a cell, and the formula “walks” to the right sheet by itself.
  • A dependent drop-down list: pick a region and the second list shows only its districts.
  • A “hard” reference that doesn’t change when rows are inserted.

INDIRECT is powerful but “heavy” — be sure to read about its traps too.

Книга1 - Excel
—☐✕
B2fx125400000
ABCD
1Month (sheet name)Total sales
2January125 400 000
3February131 900 000
4March142 300 000
5Quarter total399 600 000
6
ГотовоСреднее: 133200000Количество: 3Сумма: 399600000
B2: =INDIRECT(A2&"!B6"). Excel builds the text “January!B6” and takes the total from B6 on the January sheet; filled down — February, March

Syntax

=ДВССЫЛ(ref_text; [a1])

  • ref_text — a reference written as text: "B6", "January!B6", "A2:A10", a range name, or a cell/formula that produces such text.
  • a1 — the reference style: TRUE or omitted for the usual A1 style; FALSE for R1C1 style ("R6C2" — row 6, column 2).

Feel the difference: =A2 is the value in A2. =ДВССЫЛ(A2) is the value at the address written in A2. If A2 says “C5”, the result is the number in cell C5.

A summary across monthly sheets — step by step

1

Build a sheet with the same layout for each month: January, February, March. The monthly total always sits in the same cell — B6.

Книга1 - Excel
—☐✕
B6fx=СУММ(B2:B5)
ABCD
1WeekSales
2Week 128 500 000
3Week 231 200 000
4Week 330 100 000
5Week 435 600 000
6Total125 400 000
7
Готово
The “January” sheet. The February and March sheets have exactly the same layout

2

On the summary sheet, type the sheet names in column A character for character: January, February, March. Even one extra space gives #REF!.

3

Select B2: Формулы → Ссылки и массивы → INDIRECT. In the Ref_text box type A2&"!B6" — the month name and “!B6” join into the text “January!B6”. Leave the A1 box empty.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
B2fx
ABCD
1Month (sheet name)Total sales
2January
3February
4March
5
Готово

4

Click OK and fill the formula down to B4. Each row takes the total from its own sheet. When April arrives, just add the sheet and type “April” in A5.

Книга1 - Excel
—☐✕
B2fx125400000
ABCD
1Month (sheet name)Total sales
2January125 400 000
3February131 900 000
4March142 300 000
5
ГотовоСреднее: 133200000Количество: 3Сумма: 399600000
B3: =INDIRECT(A3&"!B6") → February!B6, B4: =INDIRECT(A4&"!B6") → March!B6

Spaces in the sheet name — apostrophes

If a sheet is called “January 2025”, Excel writes the reference as 'January 2025'!B6 — inside apostrophes. For INDIRECT you have to add them yourself:

=ДВССЫЛ("'"&A2&"'!B6")

The apostrophes do no harm even when the name has no spaces, so always writing it this way is a safe habit.

Another useful trick is taking a range boundary from a cell: =СУММ(ДВССЫЛ("B2:B"&D1)). If D1 holds 10, you get the sum of B2:B10.

A dependent drop-down list: region → district

  1. List each region’s districts in its own column, with the region name as the column header.
  2. Select those columns with their headers and choose Формулы → Create from Selection → Top row. Excel creates ranges named “Tashkent”, “Samarkand” and “Bukhara”.
  3. Put a normal list in A2 (source: D1:F1).
  4. Select B2: Данные → Проверка данных → Allow: List, Source: =ДВССЫЛ(A2).

Now when you pick “Samarkand” in A2, the list in B2 shows only Samarkand’s districts.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Получить данныеОбновить все
Получить данные
СортировкаФильтр
Сортировка и фильтр
Текст по столбцамУдалить дубликатыПроверка данных
Работа с данными
B2fx
ABCDEFG
1RegionDistrictTashkentSamarkandBukhara
2SamarkandChilanzarUrgutGijduvan
3YunusabadKattakurganKagan
4YakkasarayPayariqVabkent
5
Готово
A2 holds “Samarkand” — INDIRECT returns the range with that name (E2:E4), so the list in B2 contains Samarkand’s districts

Pro level: ways to avoid INDIRECT

Use INDIRECT only when you truly can’t do without it. Many tasks have a faster, more reliable solution:

  • A total across all sheets. A 3D reference: =СУММ(January:March!B6) — cell B6 on every sheet from January to March. It survives renaming.
  • Picking from a few sheets. =ВЫБОР(D1;January!B6;February!B6;March!B6) — not volatile, and it updates automatically when a sheet is renamed.
  • When the data is on one sheet. Don’t split months across sheets — keep one table and fetch values with =ИНДЕКС(B2:B13;ПОИСКПОЗ(E1;A2:A13;0)) or SUMIFS. That’s the cleanest solution.
  • R1C1 style. When the row and column numbers are calculated: =ДВССЫЛ("R"&D1&"C"&D2;ЛОЖЬ) — the cell at row D1, column D2.

Try it in the simulator

If the data is on one sheet, you don’t need INDIRECT. Type =ИНДЕКС(B2:B4;ПОИСКПОЗ(E1;A2:A4;0)) in E2 to show the total for the chosen month. Then type “March” in E1 and check that the result changes.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1MonthTotal salesMonth:February
2January125400000Total:
3February131900000
4March142300000
5
6
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

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

Support us
Previous

103 / 154