Practice problems / Lookup & Reference

Fetch a cell whose address is spelled out in two cells (INDIRECT)

Hard Lookup & Reference
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

A dashboard is driven by two control cells: F1 holds a column letter and F2 holds a row number. The table is in A1:D4. Return the value at that address in the Value cell F3, so the control cells alone decide what is shown.

The address must be assembled from F1 and F2 at runtime — typing a fixed cell reference fails the other cases.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABCDEF
1 ItemUnitsPriceCostColumnC
2 Widget12024.9912.5Row2
3 Gadget8019.59.25Value
4 Bolt3003.21.1

Notes

INDIRECT turns text into a real reference: INDIRECT(F1&F2) reads "C2" and returns whatever C2 holds. That is its whole purpose, and its whole cost — Excel cannot see through a text-built reference, so it never updates when rows move and never recalculates when the source changes unless everything recalculates. Use it when the address genuinely lives in a cell; use INDEX when you can compute a position instead.

How to approach

Your answer goes in F3. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cell is F3
  2. Join the two control cells into an address string
  3. INDIRECT is the function that turns that string into a reference
  4. Shape: =INDIRECT(?&?)

Official solutions

Show 2 solutions — try it yourself first

Approach 1: join the parts and hand them to INDIRECT

=INDIRECT(F1&F2)

F1 is "C" and F2 is 2, so the string is "C2" and INDIRECT returns the price 24.99. Change F1 to "B" and the same formula reads units instead — the reference itself is the variable.

Approach 2: INDIRECT only for the column index, INDEX for the fetch

=INDEX(A1:D4, F2, COLUMN(INDIRECT(F1&"1")))

INDIRECT(F1&"1") is C1, COLUMN turns that into 3, and INDEX fetches row 2 column 3. Same answer, but the lookup stays traceable, which is the reason to prefer this shape in a workbook other people maintain.

Function guide

Related practice

FAQ

What does INDIRECT actually do?

It converts a text string into a cell reference: INDIRECT("C2") behaves like C2. That lets the address be computed, which no other function allows.

Why is INDIRECT considered risky?

Excel cannot follow a reference that is built from text, so it will not update the link when rows are inserted or renamed, and it is volatile — it recalculates on every change, which slows big models.