Trouble getting charts to work correctly from template

ChrispyK

New Member
Joined
Jun 7, 2012
Messages
1
The goal here is to get a template page which will be duplicated and renamed, and still have all of its charts ready to work without changing any data settings. However, when I create new copies, the graphs continue reading data from the original document.

The INDIRECT command has been helpful, but whenever I try to use it, Excel automatically puts the name of the current sheet in next to it (causing an error, hilariously enough).

Here's an example from the Name Manager that shows the issue I'm still running into.
Original: (works for single sheet)
Code:
=OFFSET(Sheet2!$A$25,,,Sheet2!$A$39)
What I put in: (Cell AE28 returns the name of the sheet)
Code:
=OFFSET(INDIRECT("'" & $AE$28 & "'!$A$25"),,,INDIRECT("'" & $AE$28 & "'!$A$39"))
What Excel gives me back:
Code:
=OFFSET(INDIRECT("'" & [U]'Sheet2'![/U]$AE$28 & "'!$A$25"),,,INDIRECT("'" & [U]'Sheet2'![/U]$AE$28 & "'!$A$39"))

What should I be trying to get Sheet2 to disappear from the statement, and still have my graphs functional?
 

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