INDIRECT Function in Google Sheets: Syntax, Examples & Compatibility
Learn how to turn a text address into a live cell reference in Google Sheets. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: turn a text address into a live cell reference in Google Sheets. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.
Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Google Sheets test results. A guide being published here does not certify every software release or file-import scenario.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
- Checked: October 14, 2026; official INDIRECT reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=INDIRECT(cell_reference_as_string, [is_A1_notation])
The first argument supplies an address as text. The optional notation flag defaults to TRUE for A1 references; FALSE selects R1C1 references. Google explicitly demonstrates both styles. The result is a reference whose contents can be returned or passed to another function.
Best use case: Turn a text address into a live cell reference.
Set up the example sheet
In the example sheet enter B2 = 10, B3 = 42, and B4 = 15. Keep those input cells separate from your output formulas.
Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.
Worked example 1: INDIRECT with known input
=INDIRECT("B3")
Expected output: 42.
INDIRECT interprets the text B3 as a reference to the value in cell B3.
Worked example 2: a second INDIRECT case
=SUM(INDIRECT("B2:B4"))
Expected output: 67.
The text becomes the range B2:B4; its numeric values 10, 42 and 15 sum to 67.
Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.
Distinguish address text from the cell holding it
Keep B2=10, B3=42 and B4=15. Enter the text B3 in E2, without a leading equals sign:
=INDIRECT(E2)
=INDIRECT("E2")
The first formula returns 42, because E2 supplies the address B3. The second returns the text B3, because the literal address E2 points to the cell holding that text. Quotes change which address is interpreted.
Change E2 to B4 and the first result becomes 15. The input text is a choice of reference, not the desired numeric answer.
Advanced example: use explicit R1C1 notation
=INDIRECT("B3",TRUE)
=INDIRECT("R3C2",FALSE)
Both expected results are 42. R3C2 names row 3, column 2; column 2 is B. With the same style setting, =INDIRECT("R4C2",FALSE) returns 15.
Do not combine an R1C1 address string with the default A1 interpretation and assume it will be understood. Relative R1C1 forms, external files and named-range behavior are not part of these controls.
Advanced example: construct a range endpoint
Put an integer endpoint 4 in G2:
=SUM(INDIRECT("B2:B"&G2))
The concatenated text is B2:B4, and the expected total is 67. Changing G2 to 3 creates B2:B3 and returns 52. Changing G2 to 2 creates B2:B2 and returns 10.
The formula does not inspect the data to decide the last row. A user-entered endpoint needs its own validation; a result that looks reasonable does not show that the intended records were included.
For a fixed three-cell total, ordinary =SUM(B2:B4) is clearer and also returns 67. Build addresses only when a text-driven reference is actually needed.
Separate the address from the calculation
In a spare H2 cell put ="B2:B"&G2 to inspect the generated address before using it. If G2 contains 4, H2 should show B2:B4. This is a text diagnostic, not another total.
Google’s dedicated help is brief and does not publish a full invalid-address, rename, volatility or cross-file matrix. No native error code or performance guarantee for those cases is inferred here. Keep source inputs, address-builder cells and result cells separate so the reference is easy to audit.
Practical advice and troubleshooting
When this formula helps: Prefer a direct reference when practical. INDIRECT makes dependency tracking harder and can complicate large workbooks.
Important edge case: Check hard-coded address text after structural edits; these examples do not establish automatic rewriting of text addresses.
If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. For an imported file, check that the formula is being evaluated in Google Sheets and that its ranges and text survived conversion.
Compatibility and version considerations
The reference explicitly supports A1 and R1C1 styles. External-file addressing, named ranges and text-address updates after structural edits are not established by these examples.
Google Sheets is a rolling web service. Confirm the sheet locale and the full result area when checking an imported formula.
Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.
Related guides and official documentation
-
Google Sheets documentation for INDIRECT — dedicated function syntax and Google-specific behavior.
Editorial verification: Full dedicated reference and current manuscript reviewed October 14, 2026. Original and added outputs were independently calculated; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.