Bird
Raised Fist0
Excelspreadsheet~8 mins

INDIRECT for dynamic references in Excel - Dashboard Guide

Choose your learning style10 modes available
Dashboard Mode - INDIRECT for dynamic references
Dashboard Goal

See sales totals for different months by selecting the month name. The dashboard updates automatically to show the total sales for the chosen month.

Sample Data
MonthSales
January100
February150
March200
April250
May300
June350
Dashboard Components
  • Dropdown for Month Selection: Cell B9 with data validation list of months (January to June).
  • Sales Data Table: Range A2:B7 with months and sales.
  • Dynamic Total Sales: Cell B11 shows total sales for the selected month using formula:
    =INDIRECT("B" & MATCH(B9, A2:A7, 0) + 1)
    This formula finds the row of the selected month and returns the sales value in column B for that row.
Dashboard Layout
+----------------------+------------------+
| Month Selection (B9) | Total Sales (B11) |
+----------------------+------------------+
|                      |                  |
|  Sales Data Table     |                  |
|  (A2:B7)             |                  |
+----------------------+------------------+
Interactivity

User selects a month from the dropdown in cell B9. The formula in B11 uses INDIRECT combined with MATCH to find the sales value for that month dynamically. When the month changes, the total sales value updates automatically.

Self Check

If you change the month selection in B9 to "April", what value appears in B11? (Answer: 250)

Key Result
Dashboard shows total sales for a selected month using INDIRECT for dynamic cell 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