AJP Excel Information AJP Excel Information
 
 

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. 
 
 
   

Created August 2004
Last updated 5th August 2014 


Return to main page Chart Section VBA section Fun and games section Forum files Tips section Links section Book section Site information Site Search RSS feed Top of page


Microsoft® and Microsoft® Excel are registered trademarks of the Microsoft Corporation.
andypope.info is not associated with Microsoft. Copyright ©2007-2016 Andy Pope