Home / Formulas / INDIRECT in Excel
Lookup Excel + Google Sheets

INDIRECT in Excel

INDIRECT is the only function that takes an address as text and reads it as a reference. That makes it powerful for dashboards driven by a name in a cell — and fragile, because Excel cannot see through a reference it cannot parse.

INDIRECT syntax and its two arguments

=INDIRECT(ref_text, [a1])

The first argument is a string that describes an address. That it takes text instead of a reference is the whole point, and the whole risk.

1 ref_text
Required

A string like "C2", "B2:B9" or "'Q1 Sales'!B2", or an expression that builds one. Pass a cell reference and INDIRECT reads that cell's contents as the address text.

2 a1 (optional)
Required

TRUE (default) interprets the string as A1 notation, FALSE as R1C1. Almost always omitted.

A reference assembled from two cells

A dashboard stores a column letter and a row number, and INDIRECT reads the cell they describe.

ItemUnitsPrice
Widget12024.99
Gadget8019.50
Bolt3003.20
=INDIRECT(F1 & F2)

With F1 = "C" and F2 = 2 the text is "C2", so the formula returns 24.99. Change either control cell and the same formula reads a different cell — the address is the variable.

Cross-sheet references, built from text

The sheet name is part of the string. Quote it with single quotes as soon as it contains a space.

=INDIRECT("'" & A2 & "'!B2")

With "Q1" in A2 the formula reads 'Q1'!B2. Drop the quotes ("Q1!B2") and any sheet name containing a space returns #REF!.

When INDIRECT is the right tool, and when it is not

Use it

Use it when the target genuinely lives in a cell: a dashboard that switches which table or sheet it shows, a monthly set of identically shaped tabs, a named range chosen by name.

Avoid it

Avoid it when a position can be computed (INDEX is enough), in workbooks where rows are inserted or sheets are renamed, and in large models — it is volatile and recalculates on every change.

4 INDIRECT gotchas

1. It is volatile

Excel cannot trace a reference built from text, so INDIRECT recalculates on every change anywhere in the workbook. Across thousands of rows you can feel it.

2. It does not follow inserts or renames

The string is fixed: insert a row above and "C2" stays "C2". A normal reference would have shifted; this will not.

3. Closed workbooks cannot be read

INDIRECT only reads open workbooks. Point it at a closed file and it returns #REF!.

4. The value keeps its own type

If the target holds a number stored as text, INDIRECT returns text. Wrap it in VALUE when you need arithmetic.

Excel vs Google Sheets

Microsoft Excel (365 / Desktop)

Excel's INDIRECT accepts both A1 and R1C1 notation, and can resolve a named range given as text.

Google Sheets

Google Sheets has INDIRECT too, with the same cross-sheet quoting. Some functions, IMPORTRANGE among them, cannot be assembled from text.

INDIRECT practice: build the reference from control cells

On the locked sheet below, assemble an address from a column letter and a row number, then read the value.

Open full challenge
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

INDIRECT exercises

Build a reference from text with INDIRECT, and compare when INDEX is the better answer. The formula has to follow the control cells.

Building a dependent drop-down with INDIRECT

A second list that follows the first is a named range plus INDIRECT: INDIRECT turns the picked text into a range reference, so the sheet can look up a range whose name equals the choice.

FAQ

What does INDIRECT do in Excel?

It converts text into a reference: INDIRECT("C2") behaves exactly like writing C2. Because the text can be assembled from other cells, the address itself becomes a variable.

How do I reference another sheet with INDIRECT?

Include the sheet name in the text and quote it: INDIRECT("'"&A2&"'!B2") reads sheet A2 and returns its B2. The single quotes around the sheet name are required as soon as it contains a space.

Why does INDIRECT return #REF! after someone renamed a sheet?

The sheet name lives in a text string, so renaming the sheet does not update it. That is the trade-off: INDIRECT follows text, not the workbook structure.