The starting point (thereferenceargument) can be one cell or a range of cells.

Therowsandcolsarguments are the number of cells to “offset” from the starting point.

Theheightandwidtharguments are optional and determine the size of the range that is created.

OFFSET Function Example 1

Whenheightandwidthare omitted, they default to the height and width ofreference.

It is common to see OFFSET wrapped in another function that expects a range.

The OFFSET function in Google Sheets won’t allow a negative value for height or width arguments.

OFFSET Function Example 1

Examples

The examples below show how OFFSET can be configured to return different kinds of ranges.

These screens were taken withExcel 365, so OFFSET returns adynamic arraywhen the result is more than one cell.

In older versions of Excel, you’re able to use theF9 keyto check results returned from OFFSET.

OFFSET Function Example 1

you could use INDEX to retrieve individual values, or entire rows and columns.

The MATCH function is often used together with INDEX to provide row and column numbers….

OFFSET Function Example 1

OFFSET Function Example 1

OFFSET Function Example 2

OFFSET Function Example 3

OFFSET Function Example 4

OFFSET Function Example 5

OFFSET Function Example 6

Excel formula: Unwrap column into fields

Excel formula: Sum every n rows

Excel formula: Sum last n columns

Excel formula: Count visible rows with criteria

Excel formula: Sum first n rows

Excel formula: Income tax bracket calculation

Excel formula: Copy value from every nth row

Excel formula: Dynamic named range with OFFSET

Excel formula: Moving average formula

Excel formula: Define range based on cell value

Excel formula: Average last n columns

Excel formula: Copy value from every nth column

Excel formula: Sum every 3 cells

Excel formula: Average last n rows

Excel formula: Sum last n rows

Article image

Excel INDEX function