How to display table name in a cell?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,532
Office Version
  1. 365
Platform
  1. Windows
What is the best way to display the name of a table in a cell outside the table? I was hoping for something like "=TableName(???)".

I found some complicated solutions online that either require a helper cell or VBA code.

Thanks
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Yeah, I saw that one or a similar one.

Here's a solution that requires a helper cell, but no VBA. In C4, I tried to merge the helper cell into the second expression, but that got an error. Not sure why???

It looks like there is a bug in xl2bb. It mistakenly reports the expression in G3 as also in C3 & K3.

Tables.xlsx
BCDEFGHIJKL
3NameTable1NameTable3NameTable99
4#N/A
5
6NameLenWidNameLenWidNameLenWid
7A2510A2510A2510
8B3025B3025B3025
9C1510C1510C1510
10
11"C3: =MID(FORMULATEXT(B3),2,FIND("[",FORMULATEXT(B3))-2)"
12"G3: =MID(FORMULATEXT(F3),2,FIND("[",FORMULATEXT(F3))-2)"
13"K3: =MID(FORMULATEXT(J3),2,FIND("[",FORMULATEXT(J3))-2)"
Table Name
Cell Formulas
RangeFormula
B3B3=Table1[[#Headers],[Name]]
F3F3=Table3[[#Headers],[Name]]
G3,C3,K3G3=MID(FORMULATEXT(F3),2,FIND("[",FORMULATEXT(F3))-2)
J3J3=Table99[[#Headers],[Name]]
C4C4=MID(FORMULATEXT(Table1[[#Headers],[Name]]),2,FIND("[",FORMULATEXT(Table1[[#Headers],[Name]]))-2)
 
Upvote 0

Forum statistics

Threads
1,215,089
Messages
6,123,058
Members
449,091
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top