INDIRECT Function
INDIRECT converts text into an Excel reference. It enables configurable references but is volatile and less auditable than direct references or INDEX.
| Excel INDIRECT Function | |||||||||||
| INDIRECT converts editable text into a live same-sheet reference. | |||||||||||
| Source data, editable | Examples | ||||||||||
| Label | Value | Label | Value | Example | Formula syntax | Result | |||||
| Target value | 42 | Second value | 18 | Address text | =INDIRECT("B12") | 42 | |||||
| Range value | 10 | Range value | 20 | Sum text range | =SUM(INDIRECT("B13:B14")) | 40 | |||||
| Range value | 30 | Row number | 12 | Built address | =INDIRECT("B"&D14) | 42 | |||||
| Reliability checks | |||||||||||
| Text address B12 resolves to 42 | OK | ||||||||||
| Text-defined range sums to 40 | OK | ||||||||||
Overview
INDIRECT interprets text as a live cell or range reference.
Quick reference
Syntax: =INDIRECT(ref_text, [a1])
Returns: The value or reference identified by the supplied text. (reference)
Arguments:
ref_text(required) — Text describing a valid reference.a1(optional) — TRUE or omitted uses A1 style; FALSE uses R1C1 style.
The bracketed a1 argument is optional. TRUE or omission interprets ref_text as an A1-style reference, while FALSE uses R1C1 notation.
Common uses
- Selecting a sheet or range from a user choice
- Converting stored address text into a reference
- Building configurable report layouts
When not to use it
Use direct references or INDEX when the target can be expressed structurally. They remain easier to trace, respond more predictably to inserted rows and columns, and avoid INDIRECT's workbook-wide recalculation behavior.
Calculations
Excel evaluates ref_text, interprets the resulting string as an address, and returns that reference to the formula. Text can be fixed, stored in a cell, or assembled with concatenation. INDIRECT is volatile, so it recalculates whenever Excel recalculates the workbook.
Function behavior
Situation | Behavior |
|---|---|
Invalid address text | Returns |
Omitted | Uses A1 reference style. |
Inserted rows or columns | Address text is not rewritten like a direct reference. |
Closed external workbook | References may be unsupported and return |
Common errors
Overusing volatile references
What happens: Large models recalculate more slowly and become harder to trace.
Better approach: Prefer direct references, INDEX, or structured references where possible.
Assuming text updates structurally
What happens: Inserted rows do not adjust an address embedded in a string.
Better approach: Test structural changes or avoid hard-coded address text.
Example
Example 1 — Fixed address text
=INDIRECT("B12")
The workbook returns the value 42 from B12.
Example 2 — Text-defined range
=SUM(INDIRECT("B13:B14"))
B13 and B14 contain 10 and 30, so the result is 40.
Example 3 — Built address
=INDIRECT("B"&D14)
With D14 equal to 12, the generated address is B12 and the result is 42.
Example workbook
The workbook demonstrates a fixed address, a text-defined range, a concatenated address, and Excel-recalculated checks.
Key takeaway
Use INDIRECT only when a reference truly must come from text, and prefer nonvolatile alternatives otherwise.