Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,912
- Office Version
- 365
- Platform
- Windows
Kind of along the same lines with Pivot tables is the use of the offset() function to define ranges.
I have a lot of people here that use Excel for record keeping and build graphs off the tables they create. When I started defining the table range with offset() and used refreshall in the worksheet level code, they were amazed to see that they only had to enter data and not rebuild the whole workbook each time they added a record.
Saved TONS of work around here with that litttle tidbit.
Thanks to all of you!
Hi
Offset is one of the volatile worksheet functions that some of us prefer to avoid to ensure efficient models. http://www.decisionmodels.com/calcsecretsi.htm
Another way of creating dynamic ranges may be to use INDEX instead. The following:
=OFFSET($A$1,,,COUNTA($A:$A)) could also be represented as:
=$A$1:INDEX($A:$A,COUNTA($A:$A))
Just thought you might find this useful.