Ravindra BagaleCourses & study guides Track your progress

Excel INDIRECT Function

Chala mitrano — iNDIRECT reads an address written as text and opens that cell. Great for sheet name in a cell; volatile and brittle across closed files.

Fictional sample data for learning. Branch sheets per city (Vadodara / Glasgow). Pull totals by typing the sheet name.

Purpose

Turn a text string that looks like a cell or range address into a real reference Excel can calculate with.

Return value

A live reference to the cell/range named in the text (value depends on what you wrap it with).

Syntax

INDIRECT(ref_text, [a1])

Arguments

ArgumentRequired?Description
ref_textRequiredText that looks like A1, Sheet1!B2, or a named range.
a1OptionalTRUE or omitted = A1 style. FALSE = R1C1 style.

Version

Excel 2007 and later, Microsoft 365, LibreOffice Calc. Volatile. Broken links to closed workbooks are a common foot-gun.

How to use — Why → What → How

Why: Managers want to type a city name and see that branch sheet total without rewriting formulas. INDIRECT turns address text into a live reference. Type a city in F1 and pull that branch sheet total — Vadodara today, Glasgow tomorrow. Sheet names with spaces need single quotes...

What: INDIRECT converts ref_text into a reference, then Excel reads that cell. Read the arguments table carefully; each one changes the answer in a specific way.

How — numbered steps:

  1. Put the sheet name in a cell (example F1).
  2. Build text that joins quotes, the name, and !B2.
  3. Wrap with INDIRECT(...).
  4. Wrap again in SUM if needed.
  5. Test by changing F1 to another sheet name.
  6. Compare your result with the Answers sheet only after you attempt it.
  7. Write one sentence in your own words explaining when you would use this function at work.

Ravindra Bagale's Tip

Friends, wrap sheet names that have spaces in single quotes inside the text, for example the Vadodara sheet address pattern.

Ravindra Bagale's Tip

Prefer INDEX/FILTER on one tidy table when you can — fewer broken references than many INDIRECTs.

Ravindra Bagale's Tip

Friends, after class open a blank sheet and rebuild one INDIRECT example without looking. That memory test beats re-reading the page.

Download practice file: practice-indirect.xlsx (includes sheet About this data, practice sheets, and Answers).

Worked examples

1) Simple cell from text

Text A2 holds address B2.

AddrSales (₹)
B25000
Formula: =INDIRECT(A2)

Result: 5000

What it means: Reads the address written in A2 and returns that cell value.

2) Sheet name in a cell

F1 = Vadodara; pull B2 from that sheet.

City
Vadodara
Formula: =INDIRECT("'"&A2&"'!B2")

Result: (value of Vadodara!B2)

What it means: Builds a sheet-qualified address as text, then opens it.

3) Glasgow £ sheet

Same pattern for a UK branch sheet name.

City
Glasgow
Formula: =INDIRECT("'"&A2&"'!B2")

Result: (value of Glasgow!B2)

What it means: Changing the city cell retargets the formula.

4) #REF! bad address

Typo address ZZZ1.

Addr
ZZZ1
Formula: =INDIRECT(A2)

Result: #REF!

What it means: That address is not valid on the sheet.

5) Sum a text range

A2 holds B2:B4 as text.

Addr
B2:B4
Formula: =SUM(INDIRECT(A2))

Result: (sum of B2:B4)

What it means: INDIRECT supplies the range; SUM totals it.

6) Classroom recap

Quick check before you close the INDIRECT lesson.

AddrSales (₹)
B25000
Formula: =INDIRECT(A2)

Result: 5000

What it means: Same pattern as example 1 — rebuild it from memory on the Practice sheet, then check Answers.

About this data. Small demo rows for learning. Real sheets are longer; the same formula pattern scales when columns are clean.

Common errors and fixes

#REF! — Bad address, missing sheet, or closed external workbook. Fix: Fix spelling; keep source workbooks open or avoid external INDIRECT.
Wrong sheet — Missing quotes around sheet names with spaces. Fix: Build sheet-qualified text carefully.
Slow / fragile model — Dozens of volatile INDIRECTs. Fix: Consolidate data; use INDEX.

Notes and tips

  • INDIRECT does not see data in closed external workbooks.
  • a1=FALSE switches to R1C1 text like R2C2.
  • Named ranges work with INDIRECT.
  • INDIRECT turns address text into a live reference. Type a city in F1 and pull that branch sheet total — Vadodara today, Glasgow tomorrow. Sheet names with spaces need single quotes inside the text. INDIRECT is volatile and cannot read closed external workbooks, a frequent support ticket. Prefer one tidy table with INDEX/FILTER when the business allows; reserve INDIRECT for genuine sheet-name switching.
  • INDIRECT vs INDEX: INDEX stays on known ranges and is stabler. INDIRECT is for addresses that change as text (sheet names, R1C1 built in cells).
  • Fictional sample data only — practice amounts and names are made for learning.
  • After you finish the 10 tasks, re-read the errors table once; most class mistakes are listed there.
  • Keep ranges locked with absolute references when you copy formulas down a column of inputs.
  • Say the business question in plain words before you type the equals sign — it prevents wrong arguments.

In real work

INDIRECT turns address text into a live reference. Type a city in F1 and pull that branch sheet total — Vadodara today, Glasgow tomorrow. Sheet names with spaces need single quotes inside the text. INDIRECT is volatile and cannot read closed external workbooks, a frequent support ticket. Prefer one tidy table with INDEX/FILTER when the business allows; reserve INDIRECT for genuine sheet-name switching.

How it compares

INDIRECT vs INDEX: INDEX stays on known ranges and is stabler. INDIRECT is for addresses that change as text (sheet names, R1C1 built in cells).

Interview corner

What does INDIRECT do?
Converts address text into a real reference.
Closed workbook limitation?
Often returns #REF! until the source is open.
Is it volatile?
Yes.

OFFSET, INDEX, CHOOSE, FORMULATEXT

Practice tasks (10)

  1. Task 1. Return the value of the address written in A2.
    Hint: =INDIRECT(A2).
  2. Task 2. Pull B2 from the sheet named in F1.
    Hint: concatenate quotes and !B2.
  3. Task 3. Point F1 at Glasgow and confirm the value changes.
    Hint: same formula.
  4. Task 4. Cause #REF! with a bad address, then fix it.
    Hint: ZZZ1.
  5. Task 5. SUM a range address stored as text.
    Hint: SUM(INDIRECT(...)).
  6. Task 6. Write why INDIRECT is volatile.
    Hint: recalculates often.
  7. Task 7. Try a named range with INDIRECT.
    Hint: define a name first.
  8. Task 8. Document the closed-workbook limitation.
    Hint: one sentence in About sheet.
  9. Task 9. Compare with INDEX on the same data.
    Hint: interview talking point.
  10. Task 10. Bonus: dropdown of city names driving INDIRECT.
    Hint: data validation list.

Quick quiz

Q1. INDIRECT turns text into:
Q2. Sheet names with spaces need:
Q3. INDIRECT is:
Q4. Closed external workbook with INDIRECT often yields:
Q5. A safer pattern for one table is often:

Answers: Q1=A live reference, Q2=Single quotes in the text, Q3=Volatile, Q4=#REF!, Q5=INDEX/FILTER (check after you try).

Revision card

Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.

Revision card: INDIRECT
INDIRECT revision card