WorkbookLogic
FunctionLookup and referenceadvancedOFFSETSUMIF

OFFSET Function

By WorkbookLogic

OFFSET returns a reference shifted from a starting cell or range. It supports dynamic ranges, but its volatility can make large workbooks slower and harder to audit.

ExcelLast reviewed Sep 11, 2026
offset-function-v1.0.0.xlsx
Excel OFFSET Function
OFFSET returns a reference displaced from a visible starting cell or range.
Source data, editableExamples
LabelValueLabelValueExampleFormula syntaxResult
Row 110Other 1100Two rows down=OFFSET(B12,2,0)30
Row 220Other 2200One row, two columns=OFFSET(B12,1,2)200
Row 330Other 3300Three-cell window=SUM(OFFSET(B12,1,0,3,1))90
Row 440Other 4400One row up=OFFSET(B16,-1,0)40
Row 550Other 5500
Reliability checks
Two-row displacement returns 30OK
Three-cell window sums 20, 30, and 40OK

Overview

OFFSET starts from a reference, moves by row and column offsets, and optionally resizes the returned range.

Quick reference

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

Returns: A shifted cell or range reference. (reference)

Arguments:

  • reference (required) — Starting cell or range.
  • rows (required) — Rows to move; negative values move upward.
  • cols (required) — Columns to move; negative values move left.
  • height/width (optional) — Dimensions of the returned reference.

The starting reference and row and column movements are required. Optional height and width arguments resize the returned reference; when omitted, they inherit the starting reference’s dimensions.

Common uses

  • Rolling-period calculations
  • User-controlled report windows
  • Dynamic chart and summary ranges

When not to use it

Use INDEX or a structured table reference when the endpoint can be derived without a volatile function. These alternatives usually make dependencies easier to trace and reduce unnecessary recalculation in larger models.

Calculations

Excel moves from the starting reference by the requested rows and columns. Positive row offsets move down and positive column offsets move right. Optional height and width arguments return a resized range rather than a single cell. OFFSET is volatile.

Function behavior

Situation

Behavior

Negative offsets

Move up or left.

Omitted dimensions

Preserve the starting reference's dimensions.

Reference beyond sheet edge

Returns #REF!.

Recalculation

OFFSET recalculates as a volatile function.

Common errors

Using OFFSET throughout a large model

What happens: Volatile recalculation can reduce performance.
Better approach: Consider INDEX, tables, or dynamic-array formulas.

Reversing row and column offsets

What happens: The formula targets the wrong cell.
Better approach: Remember that rows come before columns.

Example

Example 1

=OFFSET(B12,2,0)

This moves two rows down from B12 and returns 30 from B14.

Example 2

=OFFSET(B12,1,2)

This moves one row down and two columns right, returning 200 from D13.

Example 3

=SUM(OFFSET(B12,1,0,3,1))

The returned three-row range is B13:B15, which sums to 90.

Example workbook

The workbook demonstrates vertical and horizontal movement, a resized range, a negative offset, and Excel-recalculated checks.

Key takeaway

OFFSET is flexible for shifted ranges, but nonvolatile reference patterns are usually preferable at scale.