This method returns a cell reference after creating a reference offset from a provided beginning point. The starting point can be a single cell or a range of cells, and the offset is specified as rows or columns “offset” from the beginning. The height and width parameters are optional, and they define the size of the generated reference.
Syntax:
=OFFSET (ref, rows, column, [height], [width])
List of criteria:
Example : Examine the example file exceltovba.com-OFFSET.xlsx for more information.In this example, we first acquire the value 18 by subtracting 3 rows down and 0 columns from cell reference C1 (same column). As a result of offsetting from cell B2, 2 rows down and 2 columns right, we receive the number 74. Finally, we compute the sum of the cell range D3:D5. To get to the cell reference, we first offset from A2 cell 1 row down and 3 columns right. The fourth and fifth arguments define which rows and columns should be included. The fourth option is 3, which means it will include three rows from D3 but just one column (fifth parameter is 1).
Important points to consider. To ensure that source data is constantly up to date, OFFSET may be used to create a dynamic named range for charts or pivot tables. OFFSET simply yields a reference; no cells or objects are transferred. Negative integers can be given for both rows and cols to reverse their typical offset direction – negative cols offset to the left, and negative rows offset above. OFFSET is a “volatile” formula; it is computed everytime a worksheet is changed. In a complex If the offset is outside the worksheet’s boundary, OFFSET will display the #REF! error value. When height or width are not specified, the height and width of the reference are utilised. OFFSET can be used in conjunction with any other function that expects to be passed a reference. spreadsheet, it might cause Excel to slow down.
Ask Your Query