Hi,
I am trying to figure out if it is possible to use a dynamic name range in an indirect formula, I can't get it to work. I think the terms I use to explain might not be the correct terms, so I'll try to explain as detailed as I can, and I'll add an example to illustrate my question.
A named range can be defined by selecting the table with data. For instance a list of customer numbers and names, then giving it a name in the white box in the upper left corner and pressing enter. In my example, I selected A1:B7 and named it StaticNameRange
However, I want it to be more dynamic, so that it selects all cells, even if I add more customers later. I know I can use A:B, but that has it's limitations, and I want to learn more about named ranges. So I use a formula to define the range:
=Offset($A$1,0,0,COUNTA(A:A),2)
This works fine for ordinary formulas. I posted in my example that I use a VLOOKUP on the named range to search for a customer number and return the name and it returned the results fine. But When I put the name of the range in H2, and use Indirect(H2) instead of the name of the range, it returns #REF.
When defining the name of the range in the first way I mentioned, it works fine to use Indirect, this is only a problem when using the offset formula to define the range.
So my question is: How can I use an dynamic Name range in an indirect formula? Maybe there is another way to make a dynamic name range that will work?
Best Regards
Tbez
Bookmarks