PC Review


Reply
Thread Tools Rate Thread

Access to Chart Trendline Equations in VB

 
 
=?Utf-8?B?S01I?=
Guest
Posts: n/a
 
      11th Jul 2007
I would like to get the 3rd order polynomial coefficients for an X-Y Chart
trendline into VB so I can automatically run a calculation at a extrapolated
X value and record this in my spreadsheet. If I can not get the coefficients
directly to do the calculation myself, can I plug in the X value and
calculate the resultant would help.

 
Reply With Quote
 
 
 
 
Harlan Grove
Guest
Posts: n/a
 
      11th Jul 2007
KMH <K...@discussions.microsoft.com> wrote...
>I would like to get the 3rd order polynomial coefficients for an X-Y
>Chart trendline into VB so I can automatically run a calculation at a
>extrapolated X value and record this in my spreadsheet. If I can not
>get the coefficients directly to do the calculation myself, can I plug
>in the X value and calculate the resultant would help.


See

http://groups.google.com/group/micro...440d271303e0d6

 
Reply With Quote
 
gimme_this_gimme_that@yahoo.com
Guest
Posts: n/a
 
      12th Jul 2007
Googling splines might be helpful to you.

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      12th Jul 2007
If you just want the coefficients, you can use LINEST. Select a range 4
cells wide and five cells high. Type this equation:

=LINEST(<yRange>,<xRange>^{1,2,3},TRUE,TRUE)

where xRange and yRange are the addresses of the X and Y values, and
array-enter the formula by holding CTRL+SHIFT while pressing ENTER. The
first row of cells show the 3rd, 2nd, 1st, and 0th order coefficients of the
poly fit. Check help for LINEST to learn what the rest of the LINEST output
includes.

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


"Harlan Grove" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> KMH <K...@discussions.microsoft.com> wrote...
>>I would like to get the 3rd order polynomial coefficients for an X-Y
>>Chart trendline into VB so I can automatically run a calculation at a
>>extrapolated X value and record this in my spreadsheet. If I can not
>>get the coefficients directly to do the calculation myself, can I plug
>>in the X value and calculate the resultant would help.

>
> See
>
> http://groups.google.com/group/micro...440d271303e0d6
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trendline Equations Chris.Cazier@gmail.com Microsoft Excel Misc 4 15th Feb 2008 08:20 PM
How can I put chart trendline equations into a MS Excel cell? =?Utf-8?B?QkdLZWVuNjI5?= Microsoft Excel Misc 1 4th Aug 2006 12:31 AM
Trendline Equations =?Utf-8?B?cnBpY2hlbWUwNw==?= Microsoft Excel Charting 2 20th Nov 2005 01:22 PM
Re: trendline equations John Walkenbach Microsoft Excel Charting 2 2nd Oct 2003 10:12 PM
Re: trendline equations Bernard V Liengme Microsoft Excel Charting 0 17th Sep 2003 07:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:11 PM.