Fetch a cell whose address is spelled out in two cells (INDIRECT)
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)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Item | Units | Price | Cost | Column | C |
| 2 | Widget | 120 | 24.99 | 12.5 | Row | 2 |
| 3 | Gadget | 80 | 19.5 | 9.25 | Value | |
| 4 | Bolt | 300 | 3.2 | 1.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.
- Target cell is F3
- Join the two control cells into an address string
INDIRECTis the function that turns that string into a reference- 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
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.