In Excel: use =INDIRECT(ref_text) to turn text into a cell or range reference, for example =INDIRECT("B"&A2) returns the value from the row number stored in A2.
Build the reference as text, including sheet names and exclamation marks when needed.
Wrap sheet names in apostrophes when they may contain spaces.
Pass the finished text to INDIRECT.
Use normal references or XLOOKUP instead when a non-volatile formula can solve the same problem.
What this does
INDIRECT converts a text string into a live reference. It is useful for dynamic sheet names, selectable ranges and references assembled from cells. The tradeoff is important: INDIRECT is volatile, can slow large workbooks, and does not update references when source ranges are moved the way normal references do. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “indirect function excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a workflow that saves repeating the same clicks every week into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A2 contains 10. =INDIRECT("B"&A2) reads B10. If B10 contains 450, the formula returns 450. For a monthly model, =INDIRECT("'"&E1&"'!B5") can pull B5 from the sheet named in E1, such as Jan or Feb. INDIRECT is powerful for dynamic references, but it should be a deliberate choice because it trades flexibility for workbook fragility and recalculation cost. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Here is the takeaway for “indirect function excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Using
INDIRECTacross many rows and slowing recalculation. - Forgetting apostrophes around sheet names with spaces.
- Expecting references inside
INDIRECTto update after rows, columns or sheets are renamed. - Using it for simple lookups where
INDEX,XLOOKUPor structured references are safer.
Frequently asked questions
What does INDIRECT do?
It turns text such as "A1" or "'Jan'!B5" into an actual reference.
Why is INDIRECT slow?
It is volatile, so it recalculates whenever the workbook recalculates.
Does INDIRECT work with closed workbooks?
In Excel, INDIRECT generally needs the referenced external workbook open.
Other ways people ask this
On the way here you may have searched this as “function indirect excel”, “how to use indirect function in excel” and “how to use the indirect function in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “function indirect excel”, “how to use indirect function in excel”, “how to use the indirect function in excel” all point at the one operation explained on this page, which is why they all lead here.