Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KMH KMH is offline
external usenet poster
 
Posts: 31
Default Access to Chart Trendline Equations in VB

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 733
Default Access to Chart Trendline Equations in VB

KMH 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Access to Chart Trendline Equations in VB

Googling splines might be helpful to you.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Access to Chart Trendline Equations in VB

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" wrote in message
oups.com...
KMH 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
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
Trendline Equations [email protected] Excel Discussion (Misc queries) 4 February 15th 08 08:20 PM
How can I put chart trendline equations into a MS Excel cell? BGKeen629 Excel Discussion (Misc queries) 1 August 4th 06 12:31 AM
Trendline Equations Steve Morris Charts and Charting in Excel 1 January 11th 06 04:56 PM
Trendline Equations swissforestry Excel Discussion (Misc queries) 2 November 30th 05 04:12 AM
Trendline Equations rpicheme07 Charts and Charting in Excel 2 November 20th 05 01:22 PM


All times are GMT +1. The time now is 02:31 AM.

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

About Us

"It's about Microsoft Excel"