Search code examples
excelmemory-managementnamed-rangesexcel-indirectstructured-references

Excel Structured Reference Dynamic Table Name


I've been at this for an hour now and I've ended up going back to using INDIRECT, which I would rather avoid. I feel like there must be a simpler way of using table format to get this done very cleanly, but I can't figure it out!

I have a sheet like this, where I want the yellow area on the right to show me the data from the available choices on the left, based on the value in the orange cell at the top. The top table is called tPeople, and the bottom table is called tPlaces. So if tPeople is entered in the cell, I want the data for that table to show up in the yellow area.

At the moment, I've set a Named Range of rPeople and rPlaces to get this working with an indirect, but I'd rather be actually using the table, and not use the indirect if possible.

=INDEX(INDIRECT($E$1),$F2,G$1)

Thanks!


Solution

  • Yes it can be done using OFFSET and INDIRECT on the table name. Here TblName is named range for cell I1. One caveat is that the rPeople and rPlaces table must be on the same row or the formula will return #Value error. Also [ID] [ID] is required to fix absolute reference for the structured table referencing. See here.

    enter image description here