Updating the size of range Name is necessary when using Names in formulas (such as VLOOKUP or INDEX) and as a source data for PivotTable Report.
Insert the following formula into the Refers to box in the New Name dialog box:
=OFFSET(Ref,0,0,COUNTA(ColumnA),COUNTA(Row_1))
This OFFSET formula returns the range address calculated by measuring the width (number of rows) and the height (number of columns) of a reference.
The syntax of the OFFSET formula is: (Reference,Rows,Cols,Height,Width).
To measure the Height or Width size use the COUNTA function. The COUNTA function returns the number of non blank cells in a range.
Bookmarks