Google Sheets
INDIRECT function in Google Sheets
Returns a cell reference specified by a string.
=INDIRECT(cell_reference_as_string, [is_A1_notation])INDIRECT syntax and parameters
Two arguments, one required.
- cell_reference_as_stringstringRequired
A cell reference, written as a string with surrounding quotation marks.
- is_A1_notationbooleanOptional
INDIRECT examples
Formulas you'll actually reuse.
Total column B on whichever sheet is named in A2 (the quotes handle spaces in sheet names):
=SUM(INDIRECT("'" & A2 & "'!B2:B13"))Result
148200The cell beside the “Total” label, wherever that row ends up:
=INDIRECT("B" & MATCH("Total", A:A, 0))Result
148200
INDIRECT in Excel
Same name — your formula ports as-is.
Try INDIRECT in the playground
Edit the example — nothing to install.
Preloaded with the INDIRECT formula from Example 1 — change anything and watch it respond.
Loading the editor…
INDIRECT errors
What they mean — and the fixes.
#REF!The text doesn't resolve to a real reference — a misspelled or deleted sheet name, or a missing ! between the sheet and the range.
Related functions
More ways Google Sheets gets this done.
- ADDRESSReturns a cell reference as a string.LookupExcel
- CHOOSEReturns an element from a list of choices based on index.LookupExcel
- COLUMNReturns the column number of a specified cell, with `A=1`.LookupExcel
- COLUMNSReturns the number of columns in a specified array or range.LookupExcel
- FORMULATEXTReturns the formula as a string. .LookupExcel
- GETPIVOTDATAExtracts an aggregated value from a pivot table that corresponds to the specified row and column headings.LookupExcel