OFFSET Function in Excel: A Range That Moves or Resizes

⏱ 1 min readUpdated 28 September 2026

LookupLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

OFFSET returns a range a set number of rows and columns away, optionally with a new size. Classic for rolling totals and dynamic chart ranges.

Syntax

=OFFSET(reference, rows, cols, [height], [width])
Argument What it means
rows, cols How far to move.
height, width Size of the returned range.

Examples

Example 1

=SUM(OFFSET(B1, COUNT(B:B)-2, 0, 3, 1))

Sum of the last 3 values in column B.

💡 OFFSET is volatile — it recalculates on every change and can slow big files. INDEX-based ranges are faster: =SUM(INDEX(B:B,COUNT(B:B)-1):INDEX(B:B,COUNT(B:B)+1)).

INDEX · INDIRECT · SUM

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong