ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   I can't figure out how to hold chart references firm when inserting data (https://www.excelbanter.com/excel-discussion-misc-queries/246268-i-cant-figure-out-how-hold-chart-references-firm-when-inserting-data.html)

Live Long & Prosper

I can't figure out how to hold chart references firm when inserting data
 
I'm embarrassed to ask, but I can't figure it out :) I have 5 columns that
are charted and on a daily/weekly basis I have new data to enter with each
new day. I want the chart to reflect the data for the last 60 days.

My problem is when I insert new cells and push the data down, the refernces
in the chart move as well, so its not showing the last 60 days. I'd like
the chart to reflect sliding data (I think thats the term).

HELP :)

Jon Peltier[_2_]

I can't figure out how to hold chart references firm when insertingdata
 
Use dynamic names as the chart data source. Here's a simple explanation
of dynamic charts with several links:

Dynamic Charts | PTS Blog
http://peltiertech.com/WordPress/dynamic-charts/

In your case, you need to define ranges which use the unchanging header
row as the reference. For example, define this name:

Name: TheDates
RefersTo: =OFFSET($A$1,1,0,60,1)

Name: TheValues1
RefersTo: =OFFSET(TheDates,0,1)

Assuming the headers are in row 1 and your dates in column A. Adjust
your chart so series 1 uses TheDates and TheValues1 instead of hard
coded cell addresses as its source data.

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



Live Long & Prosper wrote:
I'm embarrassed to ask, but I can't figure it out :) I have 5 columns that
are charted and on a daily/weekly basis I have new data to enter with each
new day. I want the chart to reflect the data for the last 60 days.

My problem is when I insert new cells and push the data down, the refernces
in the chart move as well, so its not showing the last 60 days. I'd like
the chart to reflect sliding data (I think thats the term).

HELP :)


Live Long & Prosper

I can't figure out how to hold chart references firm when inserting data
 
Simple when ya know how AND it makes sense.
THANKS Jon!

{more coffee is needed :)}



Jon Peltier wrote in
:

Use dynamic names as the chart data source. Here's a simple
explanation of dynamic charts with several links:

Dynamic Charts | PTS Blog
http://peltiertech.com/WordPress/dynamic-charts/

In your case, you need to define ranges which use the unchanging
header row as the reference. For example, define this name:

Name: TheDates
RefersTo: =OFFSET($A$1,1,0,60,1)

Name: TheValues1
RefersTo: =OFFSET(TheDates,0,1)

Assuming the headers are in row 1 and your dates in column A. Adjust
your chart so series 1 uses TheDates and TheValues1 instead of hard
coded cell addresses as its source data.

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



Live Long & Prosper wrote:
I'm embarrassed to ask, but I can't figure it out :) I have 5 columns
that are charted and on a daily/weekly basis I have new data to enter
with each new day. I want the chart to reflect the data for the last
60 days.

My problem is when I insert new cells and push the data down, the
refernces in the chart move as well, so its not showing the last 60
days. I'd like the chart to reflect sliding data (I think thats the
term).

HELP :)




Karissa

I can't figure out how to hold chart references firm when insertin
 
I have a similar graph showing rolling 12 months. Insert a row in between
the last row and the 2nd to last row. Copy the last row into the NEW second
to last row, then put your new data into the last row. Hide the row(s) you
no longer want on the graph.

"Live Long & Prosper" wrote:

I'm embarrassed to ask, but I can't figure it out :) I have 5 columns that
are charted and on a daily/weekly basis I have new data to enter with each
new day. I want the chart to reflect the data for the last 60 days.

My problem is when I insert new cells and push the data down, the refernces
in the chart move as well, so its not showing the last 60 days. I'd like
the chart to reflect sliding data (I think thats the term).

HELP :)
.



All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com