AJP Excel Information

Charts













 
 

Re: Dynamic trend line

 
The chart contains 2 data series. One is linked to the data and therefore maintains the correct number of categories.
The other data series uses a Named Range as its data source.

The Trendline is plotted against the second data series and will update when new data is added.
This approach allows you to use all of the trend line types and their formatting options.
Named range ChartData =OFFSET(Sheet1!$A$2,0,1,COUNT(Sheet1!$B:$B),1)
This workbook contains an example. 
 
 
   

Last updated 28th April 2007

 
 
  Home | Charts | VBA Code | Fun Stuff
Newsgroups | Tips | Links | What's New | Book List
Contact | About
Microsoft® and Microsoft® Excel are registered trademarks of the Microsoft Corporation.
andypope.info is not associated with Microsoft. Copyright ©2007 Andy Pope