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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “what does the indirect function do in excel”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a workflow that saves repeating the same clicks every week, but the practical win is that someone else can open the file and understand what happened without asking you.
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. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. 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 “what does the indirect function do in 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
This is also commonly searched as “what does the index function do in excel”, “what does wrap text do in excel”, “what does indirect function do in excel” and “what does count do in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “what does the index function do in excel”, “what does wrap text do in excel”, “what does indirect function do in excel” all point at the one operation explained on this page, which is why they all lead here.