1. Home
  2. Functions
  3. Lookup and reference
  4. INDIRECT

INDIRECT function

Returns the reference written in a text value, such as "B3" or "Sheet2!A1:A10".

Syntax

=INDIRECT(ref_text, [a1])

Arguments

ArgumentRequiredDescription
ref_textRequiredThe reference as text (A1 or R1C1 style, a name, or a sheet reference)
a1OptionalTRUE (default) for A1 style text, FALSE for R1C1 style

How to use INDIRECT

INDIRECT is volatile: it recalculates every time the workbook changes, so its result can differ each time.

INDIRECT takes 1 required argument and 1 optional argument. Type =INDIRECT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=INDIRECT("B2")Result Changes on every recalculation
Data in the sheet
B
27
=INDIRECT("R2C2", FALSE)Result Changes on every recalculation
Data in the sheet
B
27
=INDIRECT("not a ref")Result "#REF!"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.