Bird
Raised Fist0
Excelspreadsheet~10 mins

INDIRECT for dynamic references in Excel - Cell-by-Cell Formula Trace

Choose your learning style10 modes available
Sample Data

This data shows cell A1 containing a text reference 'B2'. Cells B2, B3, C2, and C3 contain numbers.

CellValue
A1B2
B2100
B3200
C2300
C3400
Formula Trace
=INDIRECT(A1)
Step 1: A1
Step 2: INDIRECT("B2")
Cell Reference Map
    A     B     C
1 | B2  |     |     
2 |     | 100 | 300
3 |     | 200 | 400

A1 -> "B2" text
INDIRECT uses A1's text to get value from B2
Cell A1 contains the text 'B2'. The INDIRECT function uses this text to get the value from cell B2.
Result
    A     B     C
1 | B2  |     |     
2 |     | 100 | 300
3 |     | 200 | 400

Result of =INDIRECT(A1) is 100
The formula INDIRECT(A1) returns 100 because A1 contains 'B2' and B2 holds 100.
Sheet Trace Quiz - 3 Questions
Test your understanding
What value does INDIRECT(A1) return if A1 contains 'B2' and B2 has 100?
A200
BB2
C100
DError
Key Result
INDIRECT converts a text string into a cell reference and returns the value at that reference.

Practice

(1/5)
1. What does the INDIRECT function do in Excel?
easy
A. It adds numbers in a range.
B. It converts a text string into a cell reference.
C. It finds the largest number in a list.
D. It sorts data alphabetically.

Solution

  1. Step 1: Understand the purpose of INDIRECT

    The INDIRECT function takes a text string and treats it as a cell or range reference.
  2. Step 2: Compare with other options

    Other options describe different functions like SUM, MAX, or SORT, which are unrelated to INDIRECT.
  3. Final Answer:

    It converts a text string into a cell reference. -> Option B
  4. Quick Check:

    INDIRECT = text to reference [OK]
Hint: INDIRECT turns text into a cell address [OK]
Common Mistakes:
  • Thinking INDIRECT adds or calculates numbers
  • Confusing INDIRECT with lookup functions
  • Assuming INDIRECT sorts or filters data
2. Which of these is the correct syntax for the INDIRECT function?
easy
A. INDIRECT(reference_text, a1, sheet_name)
B. INDIRECT(reference_text; [a1])
C. INDIRECT(reference_text, [a1])
D. INDIRECT(reference_text [a1])

Solution

  1. Step 1: Recall the syntax of INDIRECT

    The correct syntax is INDIRECT(reference_text, [a1]) where reference_text is required and a1 is optional.
  2. Step 2: Check each option

    INDIRECT(reference_text, [a1]) uses comma and optional argument correctly. INDIRECT(reference_text; [a1]) uses semicolon which is invalid in Excel formulas. INDIRECT(reference_text, a1, sheet_name) has extra argument 'sheet_name' which is not part of INDIRECT. INDIRECT(reference_text [a1]) lacks the comma between arguments, causing a syntax error.
  3. Final Answer:

    INDIRECT(reference_text, [a1]) -> Option C
  4. Quick Check:

    Syntax = INDIRECT(reference_text, [a1]) [OK]
Hint: Use comma to separate arguments in INDIRECT [OK]
Common Mistakes:
  • Using semicolons instead of commas
  • Adding extra arguments not supported
  • Omitting required reference_text argument
3. Given cell A1 contains the text "B2" and cell B2 contains the number 50, what will =INDIRECT(A1) return?
medium
A. 50
B. 0
C. An error #REF!
D. The text "B2"

Solution

  1. Step 1: Understand what INDIRECT(A1) does

    Since A1 contains the text "B2", INDIRECT(A1) treats it as a reference to cell B2.
  2. Step 2: Check the value in cell B2

    Cell B2 contains the number 50, so INDIRECT(A1) returns 50.
  3. Final Answer:

    50 -> Option A
  4. Quick Check:

    INDIRECT("B2") = 50 [OK]
Hint: INDIRECT reads cell text as a reference [OK]
Common Mistakes:
  • Returning the text instead of the referenced value
  • Expecting an error if text looks like a cell
  • Confusing INDIRECT with direct cell value
4. You wrote the formula =INDIRECT(A1) but it returns a #REF! error. What is the most likely cause?
medium
A. Cell A1 contains a text that is not a valid cell reference.
B. Cell A1 is empty.
C. You forgot to put quotes around A1 in the formula.
D. INDIRECT cannot reference other sheets.

Solution

  1. Step 1: Understand #REF! error in INDIRECT

    #REF! means the reference text does not point to a valid cell or range.
  2. Step 2: Analyze possible causes

    If A1 contains invalid text (like "XYZ"), INDIRECT tries to find that cell and fails, causing #REF!. If A1 is empty, INDIRECT returns #REF! as well, but the question asks for the most likely cause. Forgetting quotes around A1 is a syntax error, not #REF!. INDIRECT can reference other sheets if text is correct.
  3. Final Answer:

    Cell A1 contains a text that is not a valid cell reference. -> Option A
  4. Quick Check:

    Invalid reference text causes #REF! [OK]
Hint: Check if A1 text is a valid cell address [OK]
Common Mistakes:
  • Assuming INDIRECT can't reference other sheets
  • Confusing syntax errors with #REF! errors
  • Ignoring empty cell as cause
5. You want to sum values from different sheets dynamically. Cell A1 contains the sheet name (e.g., "Sales 2023"), and you want to sum range B1:B10 on that sheet. Which formula correctly uses INDIRECT to do this?
hard
A. =SUM(INDIRECT(A1 & "!B1:B10"))
B. =SUM(INDIRECT("A1!B1:B10"))
C. =SUM(INDIRECT(A1 & "B1:B10"))
D. =SUM(INDIRECT("'" & A1 & "'!B1:B10"))

Solution

  1. Step 1: Understand the need for sheet name with range

    To reference a range on another sheet, the format is 'SheetName'!Range. If the sheet name has spaces, single quotes are needed around it.
  2. Step 2: Analyze each option

    =SUM(INDIRECT(A1 & "!B1:B10")) misses single quotes around sheet name, which can cause errors if sheet name has spaces. =SUM(INDIRECT("A1!B1:B10")) treats A1 as literal sheet name, which is wrong. =SUM(INDIRECT(A1 & "B1:B10")) misses the exclamation mark between sheet name and range. =SUM(INDIRECT("'" & A1 & "'!B1:B10")) correctly adds single quotes around sheet name and concatenates with !B1:B10.
  3. Final Answer:

    =SUM(INDIRECT("'" & A1 & "'!B1:B10")) -> Option D
  4. Quick Check:

    Use quotes around sheet name with ! and range [OK]
Hint: Add single quotes around sheet name in INDIRECT [OK]
Common Mistakes:
  • Omitting single quotes around sheet names with spaces
  • Forgetting the exclamation mark between sheet and range
  • Using cell reference text literally instead of concatenation
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard