#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 193
Default trendline equation

We have XY (scatter-connected by line) chart.
When I use trendline (polynomial, order of 2) I can ask show up the equation.

But now we would like extract all number from equation shown in individual
trendline, and put into a separate file, so we can do detail and complex
statistical analysis.
In linear trandline, I can extract number by just computing slope, and
intercept.

Can anyone tell me how to extract number of polynomial equation?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default trendline equation

You can use LINEST for this. Check Bernard Liengme's site:

http://people.stfx.ca/bliengme/ExcelTips/Polynomial.htm

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


"Terry" wrote in message
...
We have XY (scatter-connected by line) chart.
When I use trendline (polynomial, order of 2) I can ask show up the
equation.

But now we would like extract all number from equation shown in individual
trendline, and put into a separate file, so we can do detail and complex
statistical analysis.
In linear trandline, I can extract number by just computing slope, and
intercept.

Can anyone tell me how to extract number of polynomial equation?



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 193
Default trendline equation

Sorry it seems I did not explain well.
I only get 1 number from LINEST, and that is not what I want.

Use this for example.
After I ask for equation, (polynormial, second order).
Excel calculate equation and give me
y = 0.0005 x^2 - 0.4797 x + 131.051
The number I would like to extract are 0.0005, -0.4797, and 131.051
Those 3 number with 50 more (group of 3) from other data set will import to
SAS for other detail analysis.

LINEST I can only get 0.0005.
What I miss?
How can I get other numbers?


  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 762
Default trendline equation

Terry -

Maybe you missed Bernard's instructions for "array-entering" the function.

So, to get all of the functions output, select a range of 5 rows by 3
columns, type the function =LINEST(Yrange,Xrange^{1,1},1,1) but don't press
Enter. Instead, hold down the Shift and Control keys while you press Enter.

If you are interested only in the coefficients, you could select a range of
1 row by 3 columns before array-entering the function.

- Mike
http://www.mikemiddleton.com

"Terry" wrote in message
...
Sorry it seems I did not explain well.
I only get 1 number from LINEST, and that is not what I want.

Use this for example.
After I ask for equation, (polynormial, second order).
Excel calculate equation and give me
y = 0.0005 x^2 - 0.4797 x + 131.051
The number I would like to extract are 0.0005, -0.4797, and 131.051
Those 3 number with 50 more (group of 3) from other data set will import
to
SAS for other detail analysis.

LINEST I can only get 0.0005.
What I miss?
How can I get other numbers?




  #5   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default trendline equation

That would be

=LINEST(Yrange,Xrange^{1,2},1,1)

array-entered.

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


"Mike Middleton" wrote in message
...
Terry -

Maybe you missed Bernard's instructions for "array-entering" the function.

So, to get all of the functions output, select a range of 5 rows by 3
columns, type the function =LINEST(Yrange,Xrange^{1,1},1,1) but don't
press Enter. Instead, hold down the Shift and Control keys while you press
Enter.

If you are interested only in the coefficients, you could select a range
of 1 row by 3 columns before array-entering the function.

- Mike
http://www.mikemiddleton.com

"Terry" wrote in message
...
Sorry it seems I did not explain well.
I only get 1 number from LINEST, and that is not what I want.

Use this for example.
After I ask for equation, (polynormial, second order).
Excel calculate equation and give me
y = 0.0005 x^2 - 0.4797 x + 131.051
The number I would like to extract are 0.0005, -0.4797, and 131.051
Those 3 number with 50 more (group of 3) from other data set will import
to
SAS for other detail analysis.

LINEST I can only get 0.0005.
What I miss?
How can I get other numbers?








  #6   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 193
Default trendline equation

Same data set are used, but my boss like to see the trendline equation
(non-liner Exponential)
I think the equation for Exponential is y = B*e ^(Ax)

Will =LINEAT works to extract the number (B and A)?
If so, what is the set up?
If not, what will be the best way to extract the numbers?

"Terry" wrote:

We have XY (scatter-connected by line) chart.
When I use trendline (polynomial, order of 2) I can ask show up the equation.

But now we would like extract all number from equation shown in individual
trendline, and put into a separate file, so we can do detail and complex
statistical analysis.
In linear trandline, I can extract number by just computing slope, and
intercept.

Can anyone tell me how to extract number of polynomial equation?

  #7   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 837
Default trendline equation

Take logarithms on both sides to get
LN(y) = LN(B)+A*x
for which you can use LINEST or the SLOPE and INTERCEPT functions.

Jerry

"Terry" wrote:

Same data set are used, but my boss like to see the trendline equation
(non-liner Exponential)
I think the equation for Exponential is y = B*e ^(Ax)

Will =LINEAT works to extract the number (B and A)?
If so, what is the set up?
If not, what will be the best way to extract the numbers?

"Terry" wrote:

We have XY (scatter-connected by line) chart.
When I use trendline (polynomial, order of 2) I can ask show up the equation.

But now we would like extract all number from equation shown in individual
trendline, and put into a separate file, so we can do detail and complex
statistical analysis.
In linear trandline, I can extract number by just computing slope, and
intercept.

Can anyone tell me how to extract number of polynomial equation?

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 Equation bastien86 Excel Worksheet Functions 5 July 8th 06 03:19 AM
Excel graphed trendline does not match derived equation Keith Charts and Charting in Excel 5 March 13th 06 08:15 PM
Rounding in Trendline Equation Phil Hageman Charts and Charting in Excel 3 January 15th 05 01:15 AM
Logarithmic Trendline Equation Phil Hageman Charts and Charting in Excel 2 January 13th 05 11:55 AM
How do I get the trendline equation from Excel to script? Mattias Charts and Charting in Excel 1 December 7th 04 12:21 PM


All times are GMT +1. The time now is 09:19 PM.

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

About Us

"It's about Microsoft Excel"