Structured References: Reference Table Name from Cell

Kadmi

New Member
Joined
Jan 31, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I am using structured references in my formulas and am looking for a way to change the formula references all at once instead of one by one.
For instance, I am referencing Table1[ColumnB] in the formula and would need to change all Table1[ColumnB] references to Table2[ColumnB].

Is there a convenient way of doing this? My initial idea was to try replace the table names with references to cells which contain the actual name.
So instead of

=Table1[@ColumnB]

something like

=A1&[@ColumnB] and A1 containing the string "Table1"

However, I was not able to make it work and google was not able to help either.

Thank you for your help,

Kadmi
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi & welcome to MrExcel.
You could use the Indirect function, although it is slow & volatile
Excel Formula:
=INDIRECT(A1&"[@ColumnB]")
 
Upvote 1
Solution
Thank you for the great help and the welcome!

Exactly what I was looking for. Tried indirect in the past but it looks like my syntax was off :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,083
Messages
6,123,020
Members
449,092
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