Updating the size of a source data range is necessary in order to update the reference in any formula using range Name, especially when using a PivotTable Report.
To automatically update a range Name:
Insert the following formula into the Refers to box in the Define Name dialog box:
This OFFSET formula returns the measurement size of the data table (width and height).
The syntax of the OFFSET formula is:
The reference from which you want to base the offset (in the example the reference is A1).
The number of rows or columns that you want the upper-left cell to refer to (for example, 0 rows and 0 columns).
The height or width, in number of rows (columns) that you want the returned reference to be, the numbers must be positive.
Screenshot // Automatically Updating a Range Name Reference
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.