View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Jerry W. Lewis Jerry W. Lewis is offline
external usenet poster
 
Posts: 837
Default Getting the equation of the trend line onto the excel sheet

Alternately, Tushar Mehta has enhanced VBA code by David Braden to extract
coefficients from the chart trendline.
http://groups.google.com/group/micro...da30f29434786d

If you are using an Excel version prior to 2007, this would be a useful
sanity check. LINEST prior to 2003 can lose numerical accuracy for
numerically challenging problems. LINEST in 2003 is overall much better
numerically, but coefficients of exactly zero are not to be trusted.

Jerry

"David Biddulph" wrote:

Try the LINEST() function.
http://j-walk.com/ss/excel/tips/tip101.htm
--
David Biddulph

"Farooq Sheri" wrote in message
...
I have graph that is changing continuously and its trendline changes
accordingly. I use the equation of the trendline to do some calculations.
Since the data is quite dynamic and I have a large number of graphs, is
there
a way to have the trendline equation printed in a cell. I can then write a
macro to do my calculations.
Thanks.

Farooq