Example 1
Read a cell from its address in text
D5 =INDIRECT(D2)
Result: 42,900
D2 holds the text B4. INDIRECT turns it into a reference to B4 and returns the value there. Change D2 to B3 and the result follows.
D5 =INDIRECT(D2) returns 42,900
Turns text such as "B4" or "C2:C9" into a working reference. It is volatile and hard to audit, so use it sparingly.
Syntax
=INDIRECT(, )
Every version of Excel, including Microsoft 365, Excel 2024, 2021, 2019, 2016 and earlier, Excel for the web and the mobile apps.
Try it
Edit the formula in D5 or change the inputs. The sheet recalculates as you type.
D5 =INDIRECT(D2) returns 42,900
INDIRECT takes text and treats it as a reference. =INDIRECT("B4") returns whatever is in B4. The useful part is that the text can be built from other cells, so the reference can change without editing the formula: =INDIRECT("B"&A9) reads column B at the row number held in A9.
"C2:C"&A9, a defined name, or a reference to another sheet written as text, such as "'"&A2&"'!B5". Text that doesn't make a valid reference returns #REF!.FALSE reads the text as R1C1, where "R4C2" means row 4, column 2.INDIRECT is a volatile function. Most formulas recalculate only when a cell they depend on changes. A volatile one recalculates every time Excel recalculates anything in the workbook. Excel has no way to know which cells an INDIRECT will read until it builds the text, so it can't tell which edits matter and recalculates it every time. Every formula that depends on an INDIRECT then recalculates too.
In a small workbook you won't notice. In a large model with hundreds of INDIRECTs, editing becomes slow, and Excel treats the file as changed after every recalculation.
B4 updates automatically, but the "B4" inside INDIRECT doesn't. The formula keeps pointing at the old address and returns the wrong answer without an error.#REF!.Avoid INDIRECT when the target is known in advance or can be reached another way: INDEX picks a cell by position, CHOOSE picks between a few ranges, and XLOOKUP or INDEX with MATCH look values up without building addresses. Avoid it in large or shared models, and whenever the layout is likely to change.
=INDIRECT(A2) shows the named range whose name is in A2. It remains the usual approach for dependent lists in older versions of Excel.=INDIRECT("'"&A2&"'!B5") reads B5 from the sheet named in A2, which is handy for a summary over sheets with identical layouts."B4" or "C2:C"&A9, or the name of a defined range. If the text isn't a valid reference, INDIRECT returns #REF!.TRUE, or leaving it out, means ref_text is in A1 style such as B4. FALSE means R1C1 style such as R4C2.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
D5 =INDIRECT(D2)
Result: 42,900
D2 holds the text B4. INDIRECT turns it into a reference to B4 and returns the value there. Change D2 to B3 and the result follows.
D5 =INDIRECT(D2) returns 42,900
Example 2
D5 =INDIRECT("A"&D2)
Result: West
The text "A" joined to 5 is "A5", which INDIRECT reads as a reference. The same result is available from INDEX(A1:A5, D2) without being volatile.
D5 =INDIRECT("A"&D2) returns West
Example 3
D5 =SUM(INDIRECT("B2:B"&D2))
Result: 122,850
The text is "B2:B4", so SUM adds 48,200, 31,750 and 42,900. With D2 changed to 5, the range extends to include West.
D5 =SUM(INDIRECT("B2:B"&D2)) returns 122,850
Example 4
D5 =SUM(INDIRECT(D2))
Result: 68
D2 holds the text South, which is also the name of the range B2:B4. INDIRECT returns that range and SUM adds it. The names must match the text exactly.
D5 =SUM(INDIRECT(D2)) returns 68
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In E2, return the Units value from column B at the row number in D2, using INDIRECT to build the address.
Answer in E2.
"'"&A2&"'!B5". A missing quote returns #REF!.#REF! until the other file is opened.Excel can't know which cells it will read until the text is built, so it can't tell which edits matter and recalculates it, and everything that depends on it, on every calculation.
The text isn't a valid reference. Common causes are a missing quote around a sheet name that has spaces, a misspelt sheet or range name, a reference to a closed workbook, or an empty cell as ref_text.
INDEX for a cell by position, CHOOSE to pick between a few ranges, and XLOOKUP or INDEX/MATCH for lookups. For data spread across many identical sheets, consider consolidating it into one table instead.
Yes. Build the address as text, including the sheet name: `=INDIRECT("'"&A2&"'!B5")`. It keeps working only while the sheet name matches the text exactly, and Excel won't update the text if the sheet is renamed.
Name each list after its category, then set the second cell's Data Validation list source to `=INDIRECT(A2)`, where A2 is the first drop-down. The list names can't contain spaces.
Tracks take you from the basics to modelling, one graded exercise at a time.