TX Sheet Control

INDIRECT Function

Function

Return the reference that a text names, such as "B5" or "C1:D2", so that a formula can build a reference from text. reference is the text of the reference; the second argument, named rows_or_a1 in the syntax, is TRUE or omitted for the A1 style and FALSE for the R1C1 style, as in INDIRECT("R1C1",FALSE). Text that is not a valid reference returns #REF!. The catalog accepts two arguments, although the syntax names five.

Syntax

INDIRECT(reference, rows_or_a1, columns, height, width)

Category: Lookup. Minimum arguments: 1. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=INDIRECT("A1:A3")

The formula returns the range A1:A3, whose values spill into three cells; wrap it in a function such as SUM(INDIRECT("A1:A3")) to aggregate them.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also