Fix Excel INDIRECT When Text Does Not Calculate as a Reference
Question details
The user needs an INDIRECT formula to interpret text generated by CHOOSE or concatenation correctly.

- 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.
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.
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.
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.
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.
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.
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.

Calculate a value directly instead of passing formula text to INDIRECT
Use this approach when the text represents a time or a formula rather than a cell address.
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. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 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. 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. Save the workbook: Use File > Save As to save the workbook in an Excel-compatible format such as XLSX.

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.




