Returns a reference to a range that is the specified number of rows and columns from the specified cell or range of cells. The reference that is returned can be a single cell or a range of cells, according to the specified number of rows and columns.
Syntax Copy Code |
---|
OFFSET( Reference r, Integer rows, Integer columns, [Integer height], [Integer width] ) → Reference |
If r does not identify a valid cell or cell range, the function returns the #REF! error value. If the new reference goes over the edge of the worksheet, OFFSET returns the #REF! error value. If the specified values are not integer, they are automatically truncated.
If height or width is omitted, the new reference is assumed to be the same height or width as r.
Formula Copy Code |
---|
=OFFSET(E6,-2,-2) |
Function Reference
COLUMN Function
COLUMNS Function
ROW Function
ROWS Function