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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month (sheet name) | Total sales | ||
| 2 | January | 125 400 000 | ||
| 3 | February | 131 900 000 | ||
| 4 | March | 142 300 000 | ||
| 5 | Quarter total | 399 600 000 | ||
| 6 |
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:TRUEor omitted for the usual A1 style;FALSEfor 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Week | Sales | ||
| 2 | Week 1 | 28 500 000 | ||
| 3 | Week 2 | 31 200 000 | ||
| 4 | Week 3 | 30 100 000 | ||
| 5 | Week 4 | 35 600 000 | ||
| 6 | Total | 125 400 000 | ||
| 7 |
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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month (sheet name) | Total sales | ||
| 2 | January | |||
| 3 | February | |||
| 4 | March | |||
| 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month (sheet name) | Total sales | ||
| 2 | January | 125 400 000 | ||
| 3 | February | 131 900 000 | ||
| 4 | March | 142 300 000 | ||
| 5 |
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
- List each region’s districts in its own column, with the region name as the column header.
- Select those columns with their headers and choose Формулы → Create from Selection → Top row. Excel creates ranges named “Tashkent”, “Samarkand” and “Bukhara”.
- Put a normal list in A2 (source: D1:F1).
- Select B2: Данные → Проверка данных → Allow: List, Source:
=ДВССЫЛ(A2).
Now when you pick “Samarkand” in A2, the list in B2 shows only Samarkand’s districts.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Region | District | Tashkent | Samarkand | Bukhara | ||
| 2 | Samarkand | Chilanzar | Urgut | Gijduvan | |||
| 3 | Yunusabad | Kattakurgan | Kagan | ||||
| 4 | Yakkasaray | Payariq | Vabkent | ||||
| 5 |
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.
| 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 | Month | Total sales | Month: | February | ||||||||||||||||||||
| 2 | January | 125400000 | Total: | |||||||||||||||||||||
| 3 | February | 131900000 | ||||||||||||||||||||||
| 4 | March | 142300000 | ||||||||||||||||||||||
| 5 | ||||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.