Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mikelee101
 
Posts: n/a
Default Charting data ranges that change

Hello,
I assume that there's an easy way to do this, and I just haven't found it
yet. I have a table with the headers in row 2, and data beneath. When new
data is added to the table, it is inserted in row 3, and the rest of the data
is pushed down one row. Unfortunately, when this happens, the chart "splits"
the source data range to only include the data that was there prior. Here's
an example:

Say my data table is in A2:B10, with the headers in row 2. The equation in
the "Source Data" field is

=SheetName!A2:B10

When new data is added, the data table becomes A2:B11, and the equation in
the source data field becomes

=Sheetname!A2:B2,Sheetname!A4:B11

What I'd like is for, after the new data is added, the equation to become

=Sheetname!A2:B11

I've tried anchoring parts of the table with "$", naming the range and I've
tried using the Indirect function, to no avail. The indirect function
example would be:

=Indirect("Sheetname!A2"):Sheetname!B10

This charts fine, but as soon as new data is added, Excel removes the
Indirect function and reverts to the split reference above. Same thing
happened when I used a named range. I could write a fairly simple VBA
routine that would update the source data, but I'd rather see if there's a
way to have the application do it automatically, if possible.

If anyone has any ideas, I'd certainly appreciate it.

Excel2000, WinXPPro, Chart is on a separate sheet, if that matters.

Thanks to all.

Mike
  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

Check out the dynamic chart examples and links on this page:

http://peltiertech.com/Excel/Charts/Dynamics.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

mikelee101 wrote:

Hello,
I assume that there's an easy way to do this, and I just haven't found it
yet. I have a table with the headers in row 2, and data beneath. When new
data is added to the table, it is inserted in row 3, and the rest of the data
is pushed down one row. Unfortunately, when this happens, the chart "splits"
the source data range to only include the data that was there prior. Here's
an example:

Say my data table is in A2:B10, with the headers in row 2. The equation in
the "Source Data" field is

=SheetName!A2:B10

When new data is added, the data table becomes A2:B11, and the equation in
the source data field becomes

=Sheetname!A2:B2,Sheetname!A4:B11

What I'd like is for, after the new data is added, the equation to become

=Sheetname!A2:B11

I've tried anchoring parts of the table with "$", naming the range and I've
tried using the Indirect function, to no avail. The indirect function
example would be:

=Indirect("Sheetname!A2"):Sheetname!B10

This charts fine, but as soon as new data is added, Excel removes the
Indirect function and reverts to the split reference above. Same thing
happened when I used a named range. I could write a fairly simple VBA
routine that would update the source data, but I'd rather see if there's a
way to have the application do it automatically, if possible.

If anyone has any ideas, I'd certainly appreciate it.

Excel2000, WinXPPro, Chart is on a separate sheet, if that matters.

Thanks to all.

Mike


  #3   Report Post  
mikelee101
 
Posts: n/a
Default

Jon,
This looks like it'll do the trick. I'll get a chance to read it in more
detail and try it out tonight.

Thanks a million for the help.

Mike

"Jon Peltier" wrote:

Check out the dynamic chart examples and links on this page:

http://peltiertech.com/Excel/Charts/Dynamics.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

mikelee101 wrote:

Hello,
I assume that there's an easy way to do this, and I just haven't found it
yet. I have a table with the headers in row 2, and data beneath. When new
data is added to the table, it is inserted in row 3, and the rest of the data
is pushed down one row. Unfortunately, when this happens, the chart "splits"
the source data range to only include the data that was there prior. Here's
an example:

Say my data table is in A2:B10, with the headers in row 2. The equation in
the "Source Data" field is

=SheetName!A2:B10

When new data is added, the data table becomes A2:B11, and the equation in
the source data field becomes

=Sheetname!A2:B2,Sheetname!A4:B11

What I'd like is for, after the new data is added, the equation to become

=Sheetname!A2:B11

I've tried anchoring parts of the table with "$", naming the range and I've
tried using the Indirect function, to no avail. The indirect function
example would be:

=Indirect("Sheetname!A2"):Sheetname!B10

This charts fine, but as soon as new data is added, Excel removes the
Indirect function and reverts to the split reference above. Same thing
happened when I used a named range. I could write a fairly simple VBA
routine that would update the source data, but I'd rather see if there's a
way to have the application do it automatically, if possible.

If anyone has any ideas, I'd certainly appreciate it.

Excel2000, WinXPPro, Chart is on a separate sheet, if that matters.

Thanks to all.

Mike



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with pivot charts and data labels [email protected] Charts and Charting in Excel 1 December 15th 04 03:08 PM
How can I change the position/format for all data labels in a ser. PearlBeast Charts and Charting in Excel 3 December 7th 04 08:07 PM
Problem with graph ranges No Such Luck Charts and Charting in Excel 6 December 3rd 04 01:09 PM
Extending a Chart Data Series from an Array - Can it be done? Jon Peltier Charts and Charting in Excel 4 November 30th 04 03:30 AM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM


All times are GMT +1. The time now is 06:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"