The Excel INDIRECT Function

Basic Description

The Excel Indirect function converts a text string into a cell reference.

If you type the reference B1 in an Excel formula, Excel understands that this refers to cell B1. However, Excel does not understand the text string "B1" to be a reference. Therefore, if your cell reference takes the form of a text string, you will need to use the Indirect function to convert this into an actual cell reference.

The syntax of the Indirect function is:

INDIRECT( ref_text, [a1] )

where the arguments are:

ref_text-The text describing the reference.

An optional logical argument that defines the style of the ref_text reference.
This can be either:

  • True - to denote that the reference is in A1 style
  • False - to denote that the reference is in R1C1 style
If the [a1] argument is omitted, it takes on the default value "True".

By default, Excel uses the A1 referencing style. If you want to use the R1C1 referencing style, you will need to set this in your Excel options. To learn more about referencing styles, see the Excel Reference Styles page.

Indirect Function Examples

The following spreadsheets show simple examples of the Excel Indirect function.

1=INDIRECT( "C1" ) 890
2=INDIRECT( "D" & 4 )  345
3=INDIRECT( "E" & ROW() ) 913
4=SUM( INDIRECT( "C4:E4" ) ) 462
18 890
26 345
33 913
412 462

Note that, in the above examples:

Further information and examples of the Excel Indirect Function are provided on the Microsoft Office website.

Indirect Function Error

If you get an error from the Indirect function, this is likely to be the #REF! error:

Common Error
#REF!-Occurs if the supplied ref_text cannot be interpreted as a valid cell reference.