INDIRECT function
Turns a text string such as "B3" or "Sales!A1:A10" into a real cell reference and returns what is there.
Available in All versions of Excel, including Microsoft 365, Excel for the web and Excel for Mac
In every Excel versionWorks in Google Sheets
Syntax
INDIRECT(ref_text, [a1])| Argument | What it means | |
|---|---|---|
ref_text | Required | Text that describes a reference: an address like "B3", a range like "B2:B4", a reference to another sheet like "'Jan'!B2", or a defined name. |
a1 | Optional | TRUE or omitted means ref_text is in normal A1 style. FALSE means it is in R1C1 style, such as "R3C2". |
Returns: A reference to the cell or range described by the text; used alone it shows that cell's value.
How INDIRECT works
INDIRECT lets you build a reference out of text. Normally a formula like =B3 points at a fixed cell; with INDIRECT you can assemble the address from pieces - a column letter plus a row number typed in another cell, or a sheet name taken from a list - and Excel follows it. This is how people make summary sheets that pull the same cell from a sheet per month, or drop-down lists that depend on another drop-down.
Because the reference is only text until the formula runs, it does not move when you insert rows or columns, and it does not update if a sheet is renamed. That is sometimes exactly what you want (a range that must always be B2:B4) and sometimes a source of silent errors. INDIRECT is also volatile: it recalculates every time anything in the workbook changes, which can slow down big files.
References to other workbooks only work while that workbook is open; otherwise you get #REF!. If you only need to pick from a few known ranges, CHOOSE or INDEX are faster and safer alternatives.
Examples
1Row number typed in a cell
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Sales | Input | |
| 2 | Jan | 8200 | 3 | |
| 3 | Feb | 9150 | B2:B4 | |
| 4 | Mar | 10400 | ||
| 5 | 9150 |
Result: 9150
D2 holds 3, so the text becomes "B3" and INDIRECT returns the value in B3 (February).
2Range address stored as text
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Sales | Input | |
| 2 | Jan | 8200 | 3 | |
| 3 | Feb | 9150 | B2:B4 | |
| 4 | Mar | 10400 | ||
| 5 | 27750 |
Result: 27750
D3 contains the text B2:B4. INDIRECT converts it into a real range and SUM adds 8200 + 9150 + 10400. Inserting rows above will not shift this range.
3R1C1-style reference
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Sales | Input | |
| 2 | Jan | 8200 | 3 | |
| 3 | Feb | 9150 | B2:B4 | |
| 4 | Mar | 10400 | ||
| 5 | 9150 |
Result: 9150
With FALSE the text is read as row 3, column 2, which is B3. R1C1 style is handy when both the row and column come from numbers: INDIRECT("R"&r&"C"&c, FALSE).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#REF! | The text is not a valid reference, the sheet name is misspelled, or it points to a closed workbook. | Check the text with a helper cell, add apostrophes around sheet names with spaces ("'Q1 Sales'!B2"), and keep source workbooks open. |
#REF! | The result would be larger than the sheet (beyond row 1,048,576 or column XFD). | Check the numbers used to build the address. |
Tips
- Sheet names with spaces need single quotes:
=INDIRECT("'" & A2 & "'!B10"). - For dependent drop-downs, name each list after the parent item and use
=INDIRECT(A2)as the Data Validation source. - Volatile functions recalculate constantly. In large models prefer INDEX, CHOOSE or XLOOKUP.
- Renaming a sheet does not update text inside INDIRECT - update the text yourself.
Questions
How do I sum the same cell across sheets named in a list?
Put the sheet names in A2:A13 and use =INDIRECT("'" & A2 & "'!B10") copied down, then sum that column.
Why is my workbook slow after adding INDIRECT?
INDIRECT is volatile, so every edit recalculates every INDIRECT formula and everything that depends on it. Replace it with INDEX or CHOOSE where possible.
Google Sheets
INDIRECT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
INDIRECT in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | NEPŘÍMÝ.ODKAZ |
| Danish | INDIREKTE |
| Finnish | EPÄSUORA |
| German | INDIREKT |
| Hungarian | INDIREKT |
| Italian | INDIRETTO |
| Norwegian (Bokmål) | INDIREKTE |
| Polish | ADR.POŚR |
| Portuguese (Brazil) | INDIRETO |
| Portuguese (Portugal) | INDIRETO |
| Russian | ДВССЫЛ |
| Spanish | INDIRECTO |
| Swedish | INDIREKT |
| Turkish | DOLAYLI |