LocalExcelTool
Get started

Excel INDIRECT function

INDIRECT takes an address written as text and turns it into a real reference. The classic use is reading the same cell from different sheets, where the sheet name is in a column: build 'Jan'!B2 and fetch it. It is volatile, and Excel cannot trace what it depends on, so it does not update when rows are inserted.

Lookup & reference · Available in: Excel 97 and every desktop version since

Syntax

INDIRECT(ref_text, [a1])

What it returns The value or range that the text points at.

Arguments
ref_textrequiredThe text that describes the reference, e.g. "B2" or "'Sheet 2'!A1:C9".
a1optionalTRUE or omitted for A1 style; FALSE for R1C1 style.

Examples

Read one cell from a sheet named in a column

Sheet nameJan total
Jan=INDIRECT(...)
Feb=INDIRECT(...)
= INDIRECT("'"&A2&"'!B2")

→ Jan 表 B2 的值(示例中为 128400)

A2 holds Jan, so the text becomes 'Jan'!B2 and INDIRECT resolves it. Sheet names containing spaces or starting with a digit must be quoted — that is what the pair of single quotes in the concatenation is for.

Common mistakes

  • 1.Leaving the quotes off a sheet name with a space: Jan Sales!B2 returns #REF!.
  • 2.Expecting the formula to follow inserted rows. The B2 inside INDIRECT("B2") is a string; insert a row and it still points at B2.
  • 3.Pointing at a closed workbook — INDIRECT can only read files that are open.
  • 4.Using it heavily in a shared file: when someone changes the structure the whole block breaks, and Trace Precedents cannot see the link.

How to use it

  1. 1.Click the cell where the result should appear.
  2. 2.Type = then the function name, and press Tab to accept it.
  3. 3.Enter each argument separated by commas; ranges can be dragged with the mouse.
  4. 4.Press Enter. Drag the fill handle down if the same formula applies to more rows.

Frequently asked questions

What is the syntax of INDIRECT?

INDIRECT(ref_text, [a1]). What it returns: The value or range that the text points at.

Which Excel versions support INDIRECT?

Excel 97 and every desktop version since. It is available in every desktop version unless the note above says otherwise.

Why does INDIRECT return an error instead of a value?

Leaving the quotes off a sheet name with a space: Jan Sales!B2 returns #REF!.

Related functions

More in this group

Need to get the data in first?

← All Excel formulas