Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to combine 2 or more chart types in a single chart in Excel
  • Chart Axes in Excel
  • Conditional Formatting Data bars Examples in Excel
  • How To Compare Two Lists in Excel
  • Conditional Formatting Icon Sets Examples in Excel

References

  • How to get first column number in range in Excel
  • How to get last row in text data in Excel
  • Create hyperlink with VLOOKUP in Excel
  • Get nth match with INDEX / MATCH in Excel
  • Vlookup Examples in Excel

Data Validations

  • Excel Data validation with conditional list
  • Data validation must not exist in list
  • Excel Data validation specific characters only
  • Excel Data validation no punctuation
  • Excel Data validation must not contain

Convert text string to valid reference in Excel using Indirect function

by

Applying Excel  INDIRECT function to Cell Reference, Range Reference, Named Range, Worksheet Reference.

Use the INDIRECT function in Excel to convert a text string into a valid reference. You can use the & operator to create text strings.

Cell Reference

Use the INDIRECT function in Excel to convert a text string into a valid cell reference.

1. For example, take a look at the INDIRECT function below.

indirect function Convert text string to valid reference in Excel using Indirect function

Explanation: =INDIRECT(A1) reduces to =INDIRECT(“D1”). The INDIRECT function converts the text string “D1” into a valid cell reference. In other words, =INDIRECT(“D1”) reduces to =D1.

2. The simple INDIRECT function below produces the exact same result.

simple indirect function Convert text string to valid reference in Excel using Indirect function

3. Do we really need the INDIRECT function? Yes. Without using the INDIRECT function, this would be the result.

without indirect function Convert text string to valid reference in Excel using Indirect function

4. Use the & operator to concatenate “D” with the value in cell A1.

cell referencing Convert text string to valid reference in Excel using Indirect function

Explanation: the formula above reduces to =INDIRECT(“D1”). Again, =INDIRECT(“D1”) reduces to =D1.

Range Reference

Use the INDIRECT function in Excel to convert a text string into a valid range reference. For example, combine the SUM function and the INDIRECT function.

sum indirect function Convert text string to valid reference in Excel using Indirect function

Explanation: the formula above reduces to =SUM(INDIRECT(“D3:D6”)). The INDIRECT function converts the text string “D3:D6” into a valid range reference. In other words, =SUM(INDIRECT(“D3:D6”)) reduces to =SUM(D3:D6).

Named Range

Use the INDIRECT function in Excel to convert a text string into a valid named range.

1. For example, the AVERAGE function below uses the named range Scores.

simple named ranged Convert text string to valid reference in Excel using Indirect function

Explanation: the named range Scores refers to the range D1:D3.

2. However, the AVERAGE function below returns an error.

div error Convert text string to valid reference in Excel using Indirect function

Explanation: =AVERAGE(“Scores”) returns an error because Excel cannot calculate the average of a text string!

3. The INDIRECT function below does the trick.

average indirect function Convert text string to valid reference in Excel using Indirect function

Explanation: =AVERAGE(INDIRECT(“Scores”)) reduces to =AVERAGE(Scores).

Worksheet Reference

Use the INDIRECT function in Excel to create a dynamic worksheet reference.

1. This is what a simple worksheet reference looks like.

worksheet reference Convert text string to valid reference in Excel using Indirect function

Note: cell A1 on Sheet1 contains the value 10. Cell A1 on Sheet2 contains the value 20. Cell A1 on Sheet3 contains the value 30.

2. On the Summary sheet, enter the INDIRECT function shown below. Use the & operator to concatenate the sheet name in cell A1 with “!A1”.

dynamic worksheet reference Convert text string to valid reference in Excel using Indirect function

Explanation: the formula above reduces to =INDIRECT(“Sheet1!A1”). The INDIRECT function converts the text string “Sheet1!A1” into a valid worksheet reference. In other words, =INDIRECT(“Sheet1!A1”) reduces to =Sheet1!A1.

3. If your sheet names contain spaces or other special characters, enclose the sheet name in single quotation marks. Modify the INDIRECT function as shown below.
add-single-quotation-marks Convert text string to valid reference in Excel using Indirect function

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Extract multiple matches into separate rows in Excel
  • How to use Excel AND Function
  • Nested IF function example in Excel
  • How to use Excel XOR Function
  • Invoice status with nested if in Excel

Date Time

  • Display Date is same month in Excel
  • Calculate days remaining in Excel
  • Sum through n months in Excel
  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • Excel Date & Time Functions Example

Grouping

  • How to randomly assign data to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • Group arbitrary text values in Excel
  • If cell contains one of many things in Excel
  • Map inputs to arbitrary values in Excel

General

  • Common Errors in Excel
  • Convert column number to letter in Excel
  • Count cells that do not contain many strings in Excel
  • Excel Operators
  • AutoFit Column Width, AutoFit Row Height in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning