I have a structured table called MyTable and the column called MyColumn.
MyColumn
aaa
bbb
ccc
I can write Excel formulas acting on some parts of this table that I select, like this: =Counta([MyTable][#All]) =Counta(FeaturesTbl[#Headers])
What I want is an Excel formula that will return the structured-table text of the cells I am selecting. Like this:
= MyFormula(SomeCellsISelected) this should return: "[MyTable][#All]" if I selected the entire table including headers.
The reason why I want this formula is that this table comes from a power query step, and its name may change from time to time without the user knowing. So I want to show to users what the current table name is, as well as use it dynamically in my VBA steps.
However, I want a native Excel formula for this.
I tried looking at CELL() but so far, it does not return the structured-table reference of the target cell.
Any ideas?