I am looking for a way to dynamically define named ranges in a sheet that will have rows frequently added/removed.
I've only included a snippet of the sheet, and a few examples of how I am looking to define the named ranges.
So, for example, cells G4:G13 should be defined as range "DIV_1".
Similarly, cells G14:G23 should be defined as range "DIV_2".
Also, cells G24:G34 should be defined as range "DIV_3".
The suffixes of 1, 2, and 3 are with respect to the values in Column E.
The value "DIV" is relative to the value in cell E3.
As these ranges can extend for several thousands of rows, I am looking for a way to define them via VBA.
I've found examples of code online that I am having difficulty in adapting to my sheet, so I would be extremely appreciative for any help offered.
Also as noted above, this is only a snippet, but I would need to similarly define other named ranges based on additional columns -- but if I can see how it works for this sample set of data/columns, I hope to be able to figure out the rest on my own.
Thanks in advance!
Bookmarks