# OFFSET

lookup · from excel · excel: not yet compared · sheets: not yet compared

returns reference offset from starting point

## signature

```
OFFSET(reference, rows, cols, [height], [width])
```

returns: `reference`

## arguments

- reference: range — required
- rows: number — required
- cols: number — required
- height: number — optional, defaults to 3
- width: number — optional, defaults to 2

## examples

formula and result, asserted in the engine test suite.

| formula | result | with |
| --- | --- | --- |
| `=OFFSET(A1, 1, 1)` | `0` | A1=10 |
| `=SUM(OFFSET(A1, 0, 0, 3, 1))` | `10` | A1=10 |

## related

- [ADDRESS](https://deepcalc.com/functions/address.md) — returns a cell address as text from row and column numbers
- [AREAS](https://deepcalc.com/functions/areas.md) — returns the number of areas in a reference
- [HLOOKUP](https://deepcalc.com/functions/hlookup.md) — searches first row and returns matching value
- [HYPERLINK](https://deepcalc.com/functions/hyperlink.md) — the text a link displays — clickability is the renderer's
- [INDEX](https://deepcalc.com/functions/index.md) — returns value at row and column in range
- [INDIRECT](https://deepcalc.com/functions/indirect.md) — returns reference specified by text string
- [LOOKUP](https://deepcalc.com/functions/lookup.md) — looks up value in one-row or one-column range
- [MATCH](https://deepcalc.com/functions/match.md) — returns position of value in a range

## navigate

- [all lookup functions](https://deepcalc.com/functions/lookup-functions.md)
- [function index](https://deepcalc.com/functions.md) — all 600 functions
- [error values](https://deepcalc.com/errors.md) · [concepts](https://deepcalc.com/concepts.md) · [limits](https://deepcalc.com/limits.md)
- [everything in one file](https://deepcalc.com/llms-full.txt)

source: https://deepcalc.com/functions/offset