Jinyan has attended:
Access Introduction course
Excel VBA Intro Intermediate course
Excel Advanced course
Access Intermediate course
Access Advanced course
Project Management - Framework & Processes course
Excel Avanced
How to make a dynamic name range in a worksheet
RE: Excel Avanced
Hi Jinyan
Thanks for your question
If you go to insert-Name and then define. Click new and give the range a meaningful name. In the refers to box type
=OFFSET($A$2,0,0,COUNTA($A$2:$A$200),1)
Here the named range starts at Range A2 and then nests the countA function within the offset function. This counts down from A1 to the last cell in the column that contains a value
I enclose an example worksheet
Hope this helps
Regards
Stephen
Attached files...
Will be marked as resolved in 5 days
Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.