Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
Salmonh20
 
Posts: n/a
Default Getting charts to automatically pick data from a series

Can I get a chart to always use say the last 9 values of a series?

Does excel also do interactive charts?


  #2   Report Post  
Posted to microsoft.public.excel.charting
Kelly O'Day
 
Posts: n/a
Default Getting charts to automatically pick data from a series

Salmonh:

Yes you can have Excel chart the last 9, 30 or whatever number of values
that you would like.

You'll need to use dynamic range names to do this. Here are several links
that will get you started.


http://www.stfx.ca/people/bliengme/E...ps/Dynamic.htm
http://processtrends.com/pg_chart_ti...rt_Range_Names
http://peltiertech.com/Excel/Charts/Dynamics.html


The idea is to create dynamic ranges that will update as you add data and
will set the last 9 values as your plot range.

For a simple data set of X and Y in Cols A and B, you would use 4 offset
formulas:

First we set up a range name for the last data row

last_row =OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-1,0)

Second: we set up a range name for the first data row that we want to plot,
using your 9 example:

first_row
=OFFSET(last_row,-8,0)


Third: we set up the dynamic X value range name using the first and last
rows:

dyn_x =OFFSET(first_row,0,0,last_row-first_row+1)


Fourth: we set up the dynamic Y value range as an offset to the dynamic_X
range

dyn_y =OFFSET(dyn_x,0,1)


We are now set to create our chart. I do this by creating my chart using the
chart wizard. When I have my chart formatted and set the way I want, I edit
the chart series formulas and replace the X value range with dyn_X and the Y
value range with the dyn_Y range name.

If you want another period besides 9, edit the offset formulas.


You also asked about interactive charts. There are many interactive
examples. If you give me an idea of the type of interaction you are looking
for, I can give you links to specific examples.

...Kelly






"Salmonh20" wrote in message
...
Can I get a chart to always use say the last 9 values of a series?

Does excel also do interactive charts?




  #3   Report Post  
Posted to microsoft.public.excel.charting
Salmonh20
 
Posts: n/a
Default Getting charts to automatically pick data from a series

Kelly,

Thanks that was really helful.
Interactive charts, on a set dat I have 20 different lab results on a
sample, I have 500 sample per year.
I would like to send the results as an interactive chart which will allow
the user to pick from the 20 different result types, what they wish to view,
changing from one to another.

Robert

"Kelly O'Day" wrote:

Salmonh:

Yes you can have Excel chart the last 9, 30 or whatever number of values
that you would like.

You'll need to use dynamic range names to do this. Here are several links
that will get you started.


http://www.stfx.ca/people/bliengme/E...ps/Dynamic.htm
http://processtrends.com/pg_chart_ti...rt_Range_Names
http://peltiertech.com/Excel/Charts/Dynamics.html


The idea is to create dynamic ranges that will update as you add data and
will set the last 9 values as your plot range.

For a simple data set of X and Y in Cols A and B, you would use 4 offset
formulas:

First we set up a range name for the last data row

last_row =OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-1,0)

Second: we set up a range name for the first data row that we want to plot,
using your 9 example:

first_row
=OFFSET(last_row,-8,0)


Third: we set up the dynamic X value range name using the first and last
rows:

dyn_x =OFFSET(first_row,0,0,last_row-first_row+1)


Fourth: we set up the dynamic Y value range as an offset to the dynamic_X
range

dyn_y =OFFSET(dyn_x,0,1)


We are now set to create our chart. I do this by creating my chart using the
chart wizard. When I have my chart formatted and set the way I want, I edit
the chart series formulas and replace the X value range with dyn_X and the Y
value range with the dyn_Y range name.

If you want another period besides 9, edit the offset formulas.


You also asked about interactive charts. There are many interactive
examples. If you give me an idea of the type of interaction you are looking
for, I can give you links to specific examples.

...Kelly






"Salmonh20" wrote in message
...
Can I get a chart to always use say the last 9 values of a series?

Does excel also do interactive charts?





  #4   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default Getting charts to automatically pick data from a series

This one shows the last 12 values, which is easily adjusted to 9:

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

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
http://PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
http://peltiertech.com/Excel/ExcelUserConf06.html
_______

"Salmonh20" wrote in message
...
Can I get a chart to always use say the last 9 values of a series?

Does excel also do interactive charts?




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
Create charts that update automatically from data in rows Brent Charts and Charting in Excel 4 January 19th 06 12:50 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Charts Line Types for Multiple Data Series not Printing Properly Seanb Charts and Charting in Excel 0 August 22nd 05 06:35 PM
Automatically Adding Data to Charts lhollen1 Charts and Charting in Excel 1 June 9th 05 05:43 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


All times are GMT +1. The time now is 04:59 PM.

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

About Us

"It's about Microsoft Excel"