FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

INDIRECT in Google Sheets

Google Sheets INDIRECT takes an optional second argument: FALSE makes the text be read as an R1C1 reference.

In Google Sheets

It cannot point into a different spreadsheet file; use IMPORTRANGE for that.

The arguments and common errors are covered in the INDIRECT Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Cell named by text

AB
1ItemSales
2Pens40
3Ink90
4Pads25

Formula: D2: =INDIRECT("B"&3)

Result: 90

The text "B3" becomes a reference to the second sales figure.

Reference stored in a cell

AB
1TargetValue
2B390
325

Formula: D2: =INDIRECT(A2)

Result: 25

A2 holds the text B3; INDIRECT reads the value stored at that address.

A range of variable length

AB
1RowsSales
2340
390
425

Formula: D2: =SUM(INDIRECT("B2:B"&A2))

Result: 130

With 3 in A2 the text is "B2:B3", which adds 40 and 90.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =INDIRECT("B"&4)

Example spreadsheet for INDIRECT
ABCDEF
1IDItemPriceStockResult
2101Pen2.5120Lamp
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: Lamp
Practice this in a lesson: ROW, OFFSET, INDIRECT

Frequently asked questions

Can INDIRECT read another Google Sheets file?
No, INDIRECT works within the current spreadsheet. Bring in data from another file with IMPORTRANGE.

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.