Contact

INDIRECT Function in Microsoft Excel: Syntax, Examples & Compatibility

Lookup Intermediate Microsoft Excel

Learn how to turn a text address into a live cell reference in Microsoft Excel. 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: INDIRECT interprets address text as a cell or range reference. TRUE or an omitted second argument uses A1 notation; FALSE uses R1C1 notation. Invalid references produce #REF!, and external-workbook references have additional restrictions.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
  • Platform restriction: the official reference excludes external references in Excel Web App; desktop behavior does not establish support for that scenario on the web.
  • Checked: October 14, 2026; official INDIRECT reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and reference styles

=INDIRECT(ref_text,[a1])

The address text is required. It can come from a literal string, a text-containing cell or a constructed expression. Microsoft also documents names defined as references. The optional flag defaults to TRUE for A1 notation; FALSE selects R1C1 notation.

INDIRECT returns a reference that can be consumed by a formula such as SUM. It does not evaluate arbitrary arithmetic text as a formula. The meaning of the text must be a valid reference under the selected style.

Set up the original example sheet

Enter B2 = 10, B3 = 42, and B4 = 15. Keep these inputs separate from every output formula. Examples use English function names and comma separators; adjust separators for the workbook locale.

The returned values and range calculations below are independent models of the documented reference semantics, not native Excel results.

Worked example 1: preserve the original text address

=INDIRECT("B3")

Expected output: 42. The text B3 is interpreted as an A1-style reference because the optional style flag is omitted. The result reflects the stored value of B3, not the characters B and 3.

Worked example 2: preserve the original reference aggregate

=SUM(INDIRECT("B2:B4"))

Expected output: 67. The text describes the three-cell range B2:B4. SUM receives that reference and adds 10+42+15.

This use is different from summing a text string directly. The conversion to a reference is the role INDIRECT plays in the expression.

Example 3: verify both reference styles

=INDIRECT("B3",TRUE)
=INDIRECT("R3C2",FALSE)

Both have expected result 42. B3 and R3C2 identify row 3, column 2 under their respective styles.

The R1C1 example uses an absolute row and column, avoiding a relative-address dependency on the formula’s own location. Relative R1C1 forms, imported names and all malformed-style errors are outside these specific controls.

Advanced example: construct the address from a row number

Put numeric 3 in D2:

=INDIRECT("B"&D2)

The intermediate address text is B3, giving expected result 42. Changing D2 to 2 or 4 produces B2 or B4, with expected results 10 and 15.

Display the intermediate expression ="B"&D2 in another cell when debugging. It is easier to inspect B3 directly than to infer an incorrect address from an unexpected value. A plausible numeric result does not prove that the intended source cell was selected.

Advanced example: vary a bounded endpoint

With numeric 3 or 4 in D2:

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

For D2=3 the range is B2:B3, totaling 52. For D2=4 it is B2:B4, totaling 67. D2=2 produces B2:B2, totaling 10.

This is a deliberately bounded exercise. Validate a real endpoint as a whole row number within the intended data region; allowing arbitrary text or a large row number can select unintended cells or create an invalid reference.

The address string does not encode an inclusion policy by itself. Keep the expected start, endpoint and units visible beside the calculation.

Advanced example: a defined reference name

In a practice workbook, define a workbook-scoped name SelectedAmount that refers to the original B3 cell on this worksheet. Then:

=INDIRECT("SelectedAmount")

Expected result: 42. This follows Microsoft’s documented support for a name defined as a reference. The name must actually exist and have the stated reference; merely typing a word does not create it.

Name creation interfaces differ between clients, so this is a setup requirement rather than an instruction to use a menu available everywhere. Worksheet-scoped names and colliding names require their own resolution checks.

Invalid addresses and external-workbook restrictions

Microsoft documents #REF! for invalid reference text. On the documented worksheet grid, references outside 1,048,576 rows or 16,384 columns (XFD) are invalid. Thus =INDIRECT("A1048577") and =INDIRECT("XFE1") have documentation-based #REF! expectations.

Text such as "1+2" is not a valid cell reference in this exercise. INDIRECT is not a general text-formula evaluator and should not be used as one.

For an external-workbook address, Microsoft requires the referenced workbook to be open; a closed source gives #REF!. Its dedicated page separately excludes external references in Excel Web App. No external workbook was opened or tested for this guide, and the desktop rule does not certify a web scenario.

Recalculation and maintenance

Microsoft’s performance guidance identifies INDIRECT as volatile and single-threaded. That can matter in large calculation models, but this guide makes no speed or benchmark claim.

Prefer a direct reference when the source location is already fixed. Text-built references introduce another layer to inspect when worksheets, names or source locations change. Recheck the constructed strings and intended ranges after structural edits rather than assuming a successful import proves the dependencies remain correct.

Editorial verification: Full manuscript and dedicated Microsoft function body reviewed on October 14, 2026. Original title, date, two worked formulas and input fixtures are preserved, alongside the exact approved lifecycle section. All stated original and added outputs were independently modeled; no native Excel execution, performance benchmark or workbook interchange certification was performed. Unsupported edge cases remain explicit.