Whena1is TRUE (the default value), INDIRECT evaluatesref_textas an “A1” style reference.

When a1 is FALSE, INDIRECT evaluatesref_textas an “R1C1” style reference.

For example:

Note: the a1 argument only changes the way INDIRECT evaluates ref_text, not the result.

INDIRECT function example - the basic idea (before)

Another reason is that you want to assemble a reference in a formula using different bits of information.

To Excel, it’s just a text value.

The text entered in column E represents different ranges.

INDIRECT function example - the basic idea (before)

The INDIRECT function then evaluates the text and converts it to a valid reference.

The formula is dynamic and responds to the sheet names in column B.

If the sheet names are changed, the formula will automatically recalculate.

INDIRECT function example - the basic idea (before)

For example, if a row is deleted in this range, the reference will become A1:A99.

The formula below will always refer to the first 100 rows of column A.

Example 6 - named range

The INDIRECT function can easily be used with named ranges.

INDIRECT function example - the basic idea (before)

The worksheet below contains twonamed ranges:Group1(B5:B12) andGroup2(C5:C12).

A specific example of this approach isusing named ranges to make dependent dropdown lists.

One example is this formula, designed tostrip numeric characters from a string.

INDIRECT function example - the basic idea (before)

INDIRECT function example - the basic idea (after)

INDIRECT function example - variable worksheet name

INDIRECT with a dropdown list to select sheet name

Example of INDIRECT for VLOOKUP with variable table

Example of INDIRECT function with a named range

Excel formula: Get cell content at given row and column

Excel formula: Worksheet name exists

Excel formula: COUNTIF with non-contiguous range

Excel formula: Count numbers in text string

Excel formula: VLOOKUP with variable table array

Excel formula: Count day of week between dates

Excel formula: Sum top n values

Excel formula: Strip non-numeric characters

Excel formula: Create array of numbers

Excel formula: Get work hours between dates custom schedule

Excel formula: Sum across multiple worksheets with criteria

Excel formula: Dynamic workbook reference

Excel formula: Increment cell reference with INDIRECT

Excel formula: Reverse text string

Excel formula: COUNTIFS with variable range

Article image

Article image

Article image

INDIRECT function example - the basic idea (before)

INDIRECT function example - the basic idea (after)

INDIRECT function example - variable worksheet name

Example of INDIRECT for VLOOKUP with variable table