Bird
Raised Fist0
Google Sheetsspreadsheet~20 mins

INDIRECT for dynamic references in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
INDIRECT Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
1:30remaining
What is the output of this INDIRECT formula?
Given cell A1 contains the text B2 and cell B2 contains the number 150, what value will the formula =INDIRECT(A1) return?
A150
BB2
CA1
D#REF! error
Attempts:
2 left
💡 Hint
INDIRECT uses the text in A1 as a cell reference.
❓ Function Choice
intermediate
2:00remaining
Which formula correctly uses INDIRECT to sum a range defined in cells?
Cells A1 and A2 contain the text C1 and C5 respectively. Which formula sums the range from C1 to C5 using INDIRECT?
A=SUM(INDIRECT(A1 & ":" & A2))
B=SUM(INDIRECT(A1, A2))
C=SUM(INDIRECT(A1:A2))
D=SUM(INDIRECT("A1:A2"))
Attempts:
2 left
💡 Hint
Concatenate the start and end cell references with a colon inside INDIRECT.
🎯 Scenario
advanced
2:30remaining
Using INDIRECT to reference different sheets dynamically
You have two sheets named January and February. Cell A1 on the current sheet contains the text January. Cell B2 in both sheets contains sales data. Which formula correctly retrieves the sales data from the sheet named in A1?
A=INDIRECT("A1!B2")
B=INDIRECT("'" & A1 & "'!B2")
C=INDIRECT(B2 & "!" & A1)
D=INDIRECT(A1 & "!B2")
Attempts:
2 left
💡 Hint
Sheet names with spaces or special characters need single quotes around them.
📊 Formula Result
advanced
1:30remaining
What error does this INDIRECT formula produce?
If cell A1 contains the text SheetX!Z100 but SheetX does not exist, what will the formula =INDIRECT(A1) return?
A#VALUE! error
B0
C#REF! error
DEmpty cell
Attempts:
2 left
💡 Hint
INDIRECT returns an error if the reference does not exist.
❓ data_analysis
expert
2:00remaining
How many cells are summed by this formula?
Cells A1 and A2 contain the text D3 and D7 respectively. What is the number of cells summed by the formula =SUM(INDIRECT(A1 & ":" & A2))?
A7
B4
C6
D5
Attempts:
2 left
💡 Hint
Count all cells from D3 to D7 inclusive.

Practice

(1/5)
1. What does the INDIRECT function do in Google Sheets?
easy
A. It finds the maximum value in a range.
B. It sums all numbers in a range.
C. It converts a text string into a cell or range reference.
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 reference to a cell or range.
  2. Step 2: Compare with other options

    Options B, C, and D describe other functions like SUM, MAX, and SORT, not INDIRECT.
  3. Final Answer:

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

    INDIRECT = converts text to reference [OK]
Hint: Remember: INDIRECT turns text into a live cell reference [OK]
Common Mistakes:
  • Confusing INDIRECT with SUM or MAX functions
  • Thinking INDIRECT changes cell values
  • Assuming INDIRECT sorts data
2. Which of these is the correct syntax for the INDIRECT function in Google Sheets?
easy
A. INDIRECT(reference_text, [a1])
B. INDIRECT(reference_text; [a1])
C. INDIRECT(reference_text a1)
D. INDIRECT(reference_text, a1, extra)

Solution

  1. Step 1: Recall the syntax format

    The correct syntax uses a comma to separate arguments: INDIRECT(reference_text, [a1]) where a1 is optional.
  2. Step 2: Check other options for errors

    INDIRECT(reference_text; [a1]) uses a semicolon which is incorrect in Google Sheets formulas. INDIRECT(reference_text a1) misses commas and brackets. INDIRECT(reference_text, a1, extra) has an extra argument which is invalid.
  3. Final Answer:

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

    Correct syntax uses comma and optional second argument [OK]
Hint: Use comma between arguments; second argument is optional [OK]
Common Mistakes:
  • Using semicolons instead of commas
  • Adding extra arguments
  • Omitting commas between arguments
3. Given cell A1 contains the text "B2" and cell B2 contains the number 50, what will the formula =INDIRECT(A1) return?
medium
A. The text "B2"
B. The number 50
C. An error because B2 is text
D. Blank cell

Solution

  1. Step 1: Understand the INDIRECT reference

    The formula INDIRECT(A1) reads the text in A1, which is "B2", and treats it as a reference to cell B2.
  2. Step 2: Check the value in referenced cell

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

    The number 50 -> Option B
  4. Quick Check:

    INDIRECT("B2") = value in B2 = 50 [OK]
Hint: INDIRECT uses text as address, returns that cell's value [OK]
Common Mistakes:
  • Thinking INDIRECT returns the text itself
  • Expecting an error if referenced cell has a number
  • Confusing cell content with reference
4. You wrote the formula =INDIRECT(A1:B1) but it returns an error. What is the likely problem?
medium
A. INDIRECT only works with numbers, not text.
B. You forgot to add quotes around A1:B1.
C. The formula needs a third argument to work.
D. INDIRECT cannot take a range as reference_text, only a single cell text.

Solution

  1. Step 1: Analyze the argument type

    The INDIRECT function expects a single text string as reference_text, not a range like A1:B1.
  2. Step 2: Understand why the error occurs

    Passing a range A1:B1 as reference_text causes an error because INDIRECT cannot process multiple cells as text input.
  3. Final Answer:

    INDIRECT cannot take a range as reference_text, only a single cell text. -> Option D
  4. Quick Check:

    INDIRECT needs single text reference, not range [OK]
Hint: INDIRECT needs one text cell, not multiple cells [OK]
Common Mistakes:
  • Passing a range instead of a single cell text
  • Adding unnecessary extra arguments
  • Thinking INDIRECT works only with numbers
5. You want to sum values in different sheets dynamically. Cell A1 contains the sheet name (e.g., "Sales2023"). Which formula correctly sums range B1:B10 in the sheet named in A1?
hard
A. =SUM(INDIRECT(A1 & "!B1:B10"))
B. =SUM(INDIRECT("A1!B1:B10"))
C. =SUM(INDIRECT(B1:B10 & "!" & A1))
D. =SUM(INDIRECT("B1:B10"))

Solution

  1. Step 1: Build the dynamic reference string

    Concatenate the sheet name in A1 with "!B1:B10" to create a text like "Sales2023!B1:B10".
  2. Step 2: Use INDIRECT to convert text to reference

    INDIRECT(A1 & "!B1:B10") converts the text to a range reference on the specified sheet.
  3. Step 3: Sum the values in that range

    SUM(...) adds all numbers in the referenced range.
  4. Final Answer:

    =SUM(INDIRECT(A1 & "!B1:B10")) -> Option A
  5. Quick Check:

    Concatenate sheet name + range, then INDIRECT + SUM [OK]
Hint: Join sheet name + "!range" inside INDIRECT for dynamic refs [OK]
Common Mistakes:
  • Putting cell references inside quotes incorrectly
  • Swapping sheet name and range order
  • Not concatenating sheet name and range properly
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