When using named ranges for pivot tables (among other things), I find myself constantly having to update the area of the spreadsheet referred to by the named range. This renaming occurs as a result of my adding new raw data to the table, or editing the table’s Column/Row layout. When researching possible solutions, I came across this article at Ozgrid. The gist of it is to utilize the “OFFSET” function to select the range’s dynamic limits. By managing the Column and Row Count with the OFFSET function, each change to the data or the table is reflected in the range. Here is the formula to enter into the “Refers To” box of the named range setup:=OFFSET($A$1,0,0,COUNTA($A:$A),COUNTA($1:$1))
A few things to keep in mind when using this approach;
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Aug | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
Leave a reply