The attached sample worksheet includes a small table that relates to the issue that I am posting about.
I want to set up the data in each column in a worksheet as a dynamic named range using the OFFSET function.
For example, the name defined for column A (called rngCode) could refer to:
One alternative would then be to define a named range for each additional column using the same formula with only some minor cell reference changes/differences.
For example, the name defined for column B (rngColB) could refer to:
or, better yet:
(Note the height of the named range for column B depends on a count of the entries in column A, not column B).
As another alternative, I thought I could achieve the same thing by placing the cursor at cell A2 and then defining a named formula (called NamedFormula) that refers to:
Then use this named formula to create a relative named range for each column. For example, move the cursor to cell B2 and then define a named range for column B that refers to:
Then repeat this process by moving the cursor to cell C2 and then define a named range for column C that also refers to:
I thought the trick was to make sure that I selected a reference cell before opening the Define Name dialog and setting each new column range.
Unfortunately this doesn't seem to be the right way to go about it, as when I try to select the various ranges using Go To, I get results different to what I expect.
I am now unsure if this is possible or if I am simply going about it the wrong way.
Thanks in advance.
Bookmarks