Category: FUNCTION | Updated: 2026-11-22

How to Use the INDIRECT Function in Google Sheets | Convert Text into a Cell Reference

How to Use the INDIRECT Function

The INDIRECT function converts a cell reference or range specified as a text string into an actual cell reference and returns its value. By combining it with string concatenation (&), you can dynamically switch which sheet or cell is referenced.

Syntax

=INDIRECT(cell_reference_as_string, [is_A1_notation])
  • cell_reference_as_string: A text string representing a cell address or range, or a cell containing that text (required). When typing text directly, enclose it in double quotes such as "A1" or "Sheet2!B5".
  • is_A1_notation: Specifies the reference notation (optional). Use TRUE (or omit) for standard A1 notation, or FALSE for R1C1 notation.

Example Using a Table

Here is an example of summarizing cell B2 (Total Sales) from separate store sheets (Tokyo, Osaka, Fukuoka) into a single summary sheet.

Row Column A (Store Sheet Name) Column B (Formula) Column C (Result)
1 Store Sheet Name Formula Total Sales
2 Tokyo =INDIRECT(A2 & "!B2") 1,250,000
3 Osaka =INDIRECT(A3 & "!B2") 980,000
4 Fukuoka =INDIRECT(A4 & "!B2") 840,000
  • Formula: =INDIRECT(A2 & "!B2")
  • Result: 1,250,000 (converts the string "Tokyo!B2" into an actual cell reference and retrieves the value in B2 on the Tokyo sheet)

Common Errors and Notes

  • Non-Existent Sheet Names or Invalid Reference Strings (#REF!): If the target sheet name is off by even one character, or if a sheet name containing numbers, hyphens, or spaces is not wrapped in single quotes ' (correctly: "'" & A2 & "'!B2"), a #REF! error occurs.
  • Does Not Auto-Update on Sheet Rename: Unlike normal formulas, the reference is treated as plain text. If you rename the target sheet, the text in the formula will not update automatically and will return a #REF! error.
  • Recalculation Overhead as a Volatile Function: INDIRECT is a volatile function that recalculates whenever the sheet changes. Copying it across many rows can slow down spreadsheet performance.

Frequently Asked Questions

Q. What are the benefits of using the INDIRECT function?

A. You can dynamically switch target sheets or cells by combining sheet names or row numbers stored in other cells using "&". It is also useful when you want an absolute reference (such as "A1") that does not shift even if rows are inserted or deleted.

Q. How should I write INDIRECT if a sheet name contains spaces or symbols?

A. You must wrap the sheet name in single quotes ('). For example, if you do not write it like "'Nov 2026'!B5", it will result in a "#REF!" error.