Function Problems

Fix Excel INDIRECT When Text Does Not Calculate as a Reference

Jason MillerJason Miller Nov 14, 2026 869 views

Question details

The user needs an INDIRECT formula to interpret text generated by CHOOSE or concatenation correctly.

Fix Excel INDIRECT When Text Does Not Calculate as a Reference
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user is building a formula that passes a text string to INDIRECT and wants to calculate the intended result.
Observed behavior
The formula does not return the expected result when the generated text is not interpreted as the intended reference.
Before you start

Identify the exact text produced by CHOOSE or concatenation by entering that part of the formula in a separate cell. Check whether it is a cell address, a range, a time value, or text representing a formula.

Solution 1Recommended

Pass a valid cell or range reference to INDIRECT

Use this approach when the generated text is intended to identify a cell or range.

INDIRECT interprets text as a reference; it does not execute a formula or function stored as text.

1
Inspect the generated text

In an empty Excel cell, enter the CHOOSE or concatenation expression without INDIRECT and verify that the result is a valid reference such as A2 or A1:B5.

2
Build the reference

For a concatenated address, enter =INDIRECT("A"&2) to return the value in A2. To select an address with CHOOSE, use =INDIRECT(CHOOSE(1,"A1","B1")) to return the value in A1.

3
Check the reference style

Use A1-style text by default. For R1C1-style text, set the second argument to FALSE, as in =INDIRECT("R2C1",FALSE), which refers to A2.

4
Include a sheet name if needed

To refer to a sheet with a space in its name, enter a reference such as =INDIRECT("'Sheet 1'!A1"). Confirm that the sheet and cell exist.

Pass a valid cell or range reference to INDIRECT
If the result still does not update: In Excel, check Formulas > Calculation Options and select Automatic. A #REF! error can also indicate that the generated reference is invalid.
Work with formulas in WPS Spreadsheets

Build INDIRECT References in WPS Spreadsheets

Use WPS Spreadsheets to test text generated by CHOOSE or concatenation and pass a valid cell reference to INDIRECT.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Test the text: In an empty cell, enter your CHOOSE or concatenation expression and check that it returns an address such as A2.
  3. 3. Enter INDIRECT: In the result cell, enter =INDIRECT("A"&2) to retrieve the value from A2, or replace the text expression with your own valid reference.
  4. 4. Save the workbook: Use File > Save As to save the workbook in an Excel-compatible format such as XLSX.
Create cell references dynamically with INDIRECT and CHOOSEOpen and edit Microsoft Excel XLS and XLSX filesInspect formula results in a familiar spreadsheet interfaceUse WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

Can INDIRECT run a formula stored as text?

No. INDIRECT turns reference text into a cell or range reference; it does not execute arbitrary formula text. Enter the calculation directly in a cell or use expressions as CHOOSE arguments.

Why does my INDIRECT formula return #REF!?

The text may not be a valid reference, or the referenced sheet or cell may not exist. Enter the text-producing expression in a separate cell and check the resulting address and sheet name.

How do I use INDIRECT with an R1C1 reference?

Set the second argument to FALSE. For example, =INDIRECT("R2C1",FALSE) refers to A2. If the second argument is omitted, INDIRECT uses A1-style references.

How do I convert a text time instead of a cell reference?

Use TIMEVALUE, such as =TIMEVALUE(A1), when A1 contains a recognizable text time. Then select the result and choose a time format from Home > Number Format.