Absolute References in charts.

LightWrath

New Member
Joined
Jul 14, 2015
Messages
2
Hi there,
I'm sure this is something I'm doing wrong with the correct source but not sure what exactly I'm doing incorrectly.

I have a chart that I'm adding data to each week.
The Chart references from A2:B3000. When adding a week of data it changes to A7 and requires re-editing.
Looking on the following post http://www.mrexcel.com/forum/excel-questions/415495-absolute-referencing-chart-source-data.html
I can use the 'Indirect' function. But I'm generally getting errors in using this.
I'm using Excel 2013 and creating a line chart. When going to select data source (Select Data), and using the Chart Data Range field. Entering the function =INDIRECT("Sheet1!A2:B3000"), it returns the error' That function isn't valid'.
Is anyone able to assist?
Thanks.
LightWrath
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi
Welcome to the board

You cannot use the Indirect() directly in the chart series. You must use names.

For ex., define the names in Sheet1

Name: XValues
Refers to: =INDIRECT("Sheet1!$A$2:$A$3000")

Name: YValues
Refers to: =INDIRECT("Sheet1!$B$2:$B$3000")

Now add a chart, and in Chart Tools->Design->Select Data add a new series with

YValues: =Sheet1!Yvalues
XValues: =Sheet1!Xvalues

Now insert some rows at row 2. Check the chart. You'll see that although you have inserted the rows the series still refers to the same range in rows 2:3000.
 
Upvote 0
Ohhhh....

Thanks for your reply, I had no idea about the names feature actually so this is why I didn't catch on when it was originally stated about name referencing in the post I linked.
So thank you for clearing this up, works great now and shall save me a lot of time in the future.

LightWrath
 
Upvote 0

Forum statistics

Threads
1,216,462
Messages
6,130,781
Members
449,591
Latest member
sharmavishnu413

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