Directly reference table column in chart

FarazM

New Member
Joined
Feb 4, 2014
Messages
4
I'm looking to reference a table column for my chart data,

=Workbook1.xlsx!Table1[Values]

If possible it would be even better to be able to dynamically change the table name using the INDIRECT formula:

=INDIRECT("Workbook1.xlsx!Table"&$A$1&"[Values]")
where A1=1/2/3/etc.

Currently the only way I have found to this is with defined name where,
ValueSeries=INDIRECT("Table1[Values]")

I know you can use the OFFSET function or a table reference in a defined name,
However I am looking to copy my sheet and as far as I know named references do not copy along with the sheet.

If anyone could assist me on this issue it would greatly appreciated!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I would avoid INDIRECT and OFFSET functions whenever possible (always possible if you build smart spreadsheets). How many times are you copying the table? It's not very difficult to copy named ranges. You can make them dynamic using INDEX as well.

Here is one I recently wrote, where the table is "data_Weekly", the column is "Cumulative Actual", and I'm using a user input called input_startweek to determine where to start the named range and input_endweek for where to stop it.
Code:
=INDEX(data_Weekly[Cumulative Actual],input_startweek+1,1):INDEX(data_Weekly[Cumulative Actual],input_endweek+1,1)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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