TX Sheet Control

OFFSET Function

Function

Return a reference that is offset from a starting reference by a number of rows and columns. reference is the starting cell or range, rows_or_a1 the number of rows to move (negative moves up) and columns the number of columns to move (negative moves left). height and width set the size of the returned range and default to the size of reference. A range that would start outside the sheet, or a height or width of 0, returns #REF!. A returned range of several cells spills, or can be passed to a function such as SUM.

Syntax

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

Category: Lookup. Minimum arguments: 3. Maximum arguments: 5.

Available for supported offline calculation.

Examples

=OFFSET(A1,1,0,2,1)

With the values 1, 5 and 3 in A1:A3, the formula spills 5 and 3, the two cells starting one row below A1; =SUM(OFFSET(A1,1,0,2,1)) returns 8.

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

See Also