Contact

OFFSET Function in Google Sheets: Syntax, Examples & Compatibility

Lookup Intermediate Google Sheets

Learn how to return a cell or rectangular range shifted from a starting cell in Google Sheets. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: return a cell or rectangular range shifted from a starting cell in Google Sheets. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.

Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Google Sheets test results. A guide being published here does not certify every software release or file-import scenario.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Checked: October 14, 2026; official OFFSET reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and arguments

=OFFSET(cell_reference, offset_rows, offset_columns, [height], [width])

Positive row and column offsets move down and right; negative offsets move up and left. Google explicitly says fractional row/column offsets are truncated. The optional height and width describe the returned rectangle starting at the shifted position.

The original single-cell example uses omitted dimensions. The new rectangular examples below specify both dimensions explicitly; the dedicated help does not give a complete multi-cell-base default rule, so no Excel dimension-inheritance rule is imported.

Best use case: Return a cell or rectangular range shifted from a starting cell.

Set up the example sheet

On a new sheet enter B2 = 10, B3 = 42, and B4 = 15. The initial reference in these examples is B2.

Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.

Worked example 1: OFFSET with known input

=OFFSET(B2,1,0)

Expected output: 42.

One row below B2 and zero columns to the right is B3.

Worked example 2: a second OFFSET case

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

Expected output: 67.

The 3-row by 1-column reference starts at B2 and includes B2:B4, totalling 10 + 42 + 15.

Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.

Make movement and size separate

Keep B2=10, B3=42 and B4=15. Add C2=2, C3=4 and C4=6:

=SUM(OFFSET(B2,0,1,3,1))
=SUM(OFFSET(B2,0,0,3,2))

Expected totals are 12 and 79. The first formula moves the starting position one column right and selects C2:C4. The second stays at B2 and widens the result to B2:C4, containing both columns.

Changing width is not the same operation as moving the reference. Draw the selected rectangle or list its coordinates when a total is unexpected.

Advanced example: negative and fractional movement

=OFFSET(B4,-1,0,1,1)
=OFFSET(B2,1.9,0,1,1)
=OFFSET(B4,-1.9,0,1,1)

All three expected results are 42, from B3. The fractional offsets truncate to 1 and -1, respectively. Truncating -1.9 toward zero is not the same as rounding it down to -2.

The dimension arguments in these controls are positive integers. Fractional or nonpositive dimensions, oversized ranges and every coercion/error combination remain outside the reviewed Google prose.

Advanced example: audit a moving two-record window

Add B5=9 and B6=24. In E2:E5 enter offsets 0,1,2,3. In F2 enter and fill down:

=SUM(OFFSET($B$2,E2,0,2,1))

Expected totals are 52,57,24,33, from ranges B2:B3, B3:B4, B4:B5, and B5:B6. The starting reference is locked, while the chosen row offset changes. Each window contains exactly two records, not two calendar days unless the source rows already have that meaning.

An expanding total uses a different size policy: =SUM(OFFSET($B$2,0,0,E2+1,1)) for offsets 0,1,2,3 gives 10,52,67,76. The start stays fixed and the height grows. Comparing these two outputs catches confusion between movement and expansion.

Reference errors and output placement

The Google reference names #REF! when negative offsets move beyond the top or left edge of the sheet. It also warns that an array result can cause a circular reference if it overwrites the target cells; that situation is documented as #REF! too.

Put the output outside every referenced window. An empty destination rectangle does not make an input/output overlap safe. This guide models the selected cells and arithmetic, not native recalculation timing, volatility or every array-entry workflow.

Practical advice and troubleshooting

When this formula helps: OFFSET is handy for explicitly sized windows. The dedicated Google reference reviewed does not establish its recalculation or volatility policy; no Excel performance claim is imported here.

Important edge case: An offset that points outside the sheet can return a reference error; it does not wrap to another row.

If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. For an imported file, check that the formula is being evaluated in Google Sheets and that its ranges and text survived conversion.

Compatibility and version considerations

Semantics depend on whether an imported formula expects a value or a reference. Recheck results after format conversion.

Google Sheets is a rolling web service. Confirm the sheet locale and the full result area when checking an imported formula.

Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.

Editorial verification: Full dedicated reference and current manuscript reviewed October 14, 2026. Original and added outputs were independently calculated; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.