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

OFFSET function

Returns a reference shifted a number of rows and columns from a starting reference, optionally with a new size.

Syntax

=OFFSET(reference, rows, cols, [height], [width])

Arguments

ArgumentRequiredDescription
referenceRequiredThe starting reference
rowsRequiredRows to move down (negative moves up)
colsRequiredColumns to move right (negative moves left)
heightOptionalHeight of the result in rows (default: same as reference)
widthOptionalWidth of the result in columns (default: same as reference)

How to use OFFSET

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

OFFSET takes 3 required arguments and 2 optional arguments. Type =OFFSET( 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.

=OFFSET(A1, 1, 1)Result Changes on every recalculation
Data in the sheet
B
25
=ROWS(OFFSET(A1, 0, 0, 3, 2))Result Changes on every recalculation
=OFFSET(A1, -1, 0)Result "#REF!"

Every formula, right in your browser

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