ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Trend Line Constants (https://www.excelbanter.com/excel-discussion-misc-queries/60650-trend-line-constants.html)

Ken

Trend Line Constants
 
I have created and X Y Scatter chart and placed an Exponential Trend Line on
it with a good R2 result. I have added the equation to be shown on the chart.

How can I put the Constant values of this equation into separate cells
within the worksheet.

i.e. equation is Y = bE (cX)

I want to put the value of "b" and "c" into separate cells. Can anyone help?
--
Ken
--
Ken

Bill Martin

Trend Line Constants
 
Ken wrote:
I have created and X Y Scatter chart and placed an Exponential Trend Line on
it with a good R2 result. I have added the equation to be shown on the chart.

How can I put the Constant values of this equation into separate cells
within the worksheet.

i.e. equation is Y = bE (cX)

I want to put the value of "b" and "c" into separate cells. Can anyone help?

------------------

I don't believe you can capture the constants simply from the graph. However,
ask the Excel help system about the LOGEST( ) function which will provide them.

Bill

B. R.Ramachandran

Trend Line Constants
 
Hi,

Assuming that your x-values are in A2:A21 and y-values are in B2:B21, use
the following formulas to calculate b and c.

For b, =EXP(INTERCEPT(LN(B2:B21),A2:A21))
For c, =SLOPE(LN(B2:B21),(A2:A21))

Regards,
B. R. Ramachandran


"Ken" wrote:

I have created and X Y Scatter chart and placed an Exponential Trend Line on
it with a good R2 result. I have added the equation to be shown on the chart.

How can I put the Constant values of this equation into separate cells
within the worksheet.

i.e. equation is Y = bE (cX)

I want to put the value of "b" and "c" into separate cells. Can anyone help?
--
Ken
--
Ken


Jerry W. Lewis

Trend Line Constants
 
David Braden has posted code to extract coefficients from the chart
trendline equation

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

You must format the equation to display full precision (scientific w/ 14
decimal places) or you will lose accuracy.

Jerry

Ken wrote:

I have created and X Y Scatter chart and placed an Exponential Trend Line on
it with a good R2 result. I have added the equation to be shown on the chart.

How can I put the Constant values of this equation into separate cells
within the worksheet.

i.e. equation is Y = bE (cX)

I want to put the value of "b" and "c" into separate cells. Can anyone help?



Ken

Trend Line Constants
 
Many thanks B. R.Ramachandran, this worked fantastically!!!! KEN
--
Ken


"B. R.Ramachandran" wrote:

Hi,

Assuming that your x-values are in A2:A21 and y-values are in B2:B21, use
the following formulas to calculate b and c.

For b, =EXP(INTERCEPT(LN(B2:B21),A2:A21))
For c, =SLOPE(LN(B2:B21),(A2:A21))

Regards,
B. R. Ramachandran


"Ken" wrote:

I have created and X Y Scatter chart and placed an Exponential Trend Line on
it with a good R2 result. I have added the equation to be shown on the chart.

How can I put the Constant values of this equation into separate cells
within the worksheet.

i.e. equation is Y = bE (cX)

I want to put the value of "b" and "c" into separate cells. Can anyone help?
--
Ken
--
Ken


Ken

Trend Line Constants
 
B.R. Ramachandran

Thanks for your help on this one. Also I need to get a Polynomial constants
for a 2 degree equation. Can you help? e.g. Z = aX(2) + bX + c.
I need a, b and c

--
Ken


"B. R.Ramachandran" wrote:

Hi,

Assuming that your x-values are in A2:A21 and y-values are in B2:B21, use
the following formulas to calculate b and c.

For b, =EXP(INTERCEPT(LN(B2:B21),A2:A21))
For c, =SLOPE(LN(B2:B21),(A2:A21))

Regards,
B. R. Ramachandran


"Ken" wrote:

I have created and X Y Scatter chart and placed an Exponential Trend Line on
it with a good R2 result. I have added the equation to be shown on the chart.

How can I put the Constant values of this equation into separate cells
within the worksheet.

i.e. equation is Y = bE (cX)

I want to put the value of "b" and "c" into separate cells. Can anyone help?
--
Ken
--
Ken



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com