Google Sheets OFFSET Function: Syntax, Examples & Tips

The OFFSET function returns a range that is a specified number of rows and columns from a starting cell, allowing dynamic data referencing.
Google Sheets
OFFSET(cell_reference, offset_rows, offset_columns, [height], [width])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is an OFFSET?
  3. A Practical Example
  4. OFFSET Formula
  5. Result of the Formula
  6. Why Use OFFSET?
  7. Key Takeaways:
  8. Example use case

Parameters

cell_reference:
The starting point from which the offset will be applied. This is typically a single cell reference.

offset_rows:
The number of rows to move up or down from the cell_reference. Positive numbers move down, while negative numbers move up.

offset_columns:
The number of columns to move left or right from the cell_reference. Positive numbers move right, while negative numbers move left.

height:
(Optional) The number of rows to include in the returned range. If omitted, it defaults to the height of the cell_reference.

width:
(Optional) The number of columns to include in the returned range. If omitted, it defaults to the width of the cell_reference.

What is an OFFSET?

The OFFSET function in Google Sheets is a versatile tool that allows users to reference a range of cells that is a specified number of rows and columns away from a starting cell. This function is particularly useful for creating dynamic ranges and can be combined with other functions to perform complex calculations.

In simpler terms, OFFSET enables you to create a reference to a range of cells based on a starting point, making it easier to manipulate and analyze data in your spreadsheets.

A Practical Example

Imagine you are tracking monthly sales data for different products in a Google Sheets document:

Sales Data Table:

MonthProduct AProduct BProduct C
Jan100150200
Feb120130210
Mar140160220

You want to calculate the total sales for Product A over the first three months.

OFFSET Formula

To achieve this, you would use the OFFSET function in combination with the SUM function as follows:

Google Sheets
=SUM(OFFSET(B2, 0, 0, 3, 1))

In this formula:

  • B2 is the starting cell (Product A's sales for January).
  • 0 is the number of rows to move down (in this case, we stay in the same row).
  • 0 is the number of columns to move right (again, we stay in the same column).
  • 3 is the height of the range (we want to include three months).
  • 1 is the width of the range (we are only interested in one column).

Result of the Formula

When you apply the OFFSET formula to calculate the total sales for Product A, the output would be:

Google Sheets
Total Sales for Product A: 360

This result is obtained by summing the values from January (100), February (120), and March (140).

Why Use OFFSET?

OFFSET is beneficial because it allows for dynamic referencing of data ranges, which can be particularly useful in scenarios where data is frequently updated or where you need to analyze different segments of data without changing the formula structure. It can also be combined with other functions to create more complex calculations.

Key Takeaways:

  • OFFSET: A powerful function that creates a reference to a range of cells based on a starting point.
  • Dynamic Ranges: Ideal for creating ranges that adjust automatically as data changes.
  • Versatile: Can be used in combination with other functions for complex calculations.
  • Common Use Cases: Useful for data analysis, reporting, and any scenario where dynamic data referencing is required.

OFFSET is an essential function for anyone working with data in Google Sheets, providing a flexible way to enhance data analysis and reporting capabilities.

Happy spreadsheeting!

Example use case

You have a sales report where Column A lists product IDs and Column B lists sales figures. Using the OFFSET formula, you can dynamically reference the sales figure for a specific product ID based on its position, enabling quick analysis of sales trends.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.

OFFSET in Google Sheets - Better Analyst