FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

OFFSET in Google Sheets

OFFSET with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the OFFSET Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

One cell away

AB
1ItemSales
2Pens40
3Ink90
4Pads25

Formula: D2: =OFFSET(A1,2,1)

Result: 90

Two rows down and one column right of A1 lands on B3.

A window of three cells

AB
1MonthSales
2Jan10
3Feb20
4Mar30
5Apr40

Formula: D2: =SUM(OFFSET(B1,1,0,3,1))

Result: 60

The range starts one row below B1 and is three rows high, so it covers B2:B4.

The latest three entries

AB
1MonthSales
2Jan10
3Feb20
4Mar30
5Apr40

Formula: D2: =SUM(OFFSET(B1,COUNT(B2:B5)-2,0,3,1))

Result: 90

COUNT gives 4 entries; moving 2 rows down places the window on B3:B5.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =SUM(OFFSET(D2,1,0,3,1))

Example spreadsheet for OFFSET
ABCDEF
1IDItemPriceStockResult
2101Pen2.5120135
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: 135
Practice this in a lesson: ROW, OFFSET, INDIRECT

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.