Polynomial Trend Line Equation

dodger7

Board Regular
Joined
Mar 19, 2009
Messages
137
Hi Folks

I have created an order 2 polynomial trend line from my data (sales volumes from mar-10 to jan-11).

The equation shown on the chart is:

y = 61.578089x2 - 163416.228904x + 108425159.760839

Does anyone know how to get the values for the trend line using the above formula?

Thanks in advance
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
With an x value in A1 try

=61.578089*A1^2 - 163416.228904*A1 + 108425159.760839
 
Upvote 0
I had guessed that, but x is dates. Will this make sense to the forumla, to start with an excel date value?

I tried it as an example but the result was millions out
 
Upvote 0
Sorry, I'm not sure. It does generate rather large numbers. But a date in Excel is just the number of days since 1 Jan 1900.
 
Upvote 0
Sorry, I'm not sure. It does generate rather large numbers. But a date in Excel is just the number of days since 1 Jan 1900.

Yes it's strange... The numbers do seem to increase in the way i'd expect, just at a few hundered million out from the scale I was expecting!

Thanks for your help anyway and time
 
Upvote 0
If you have a line graph, then the chart considers the x values to be categories (1,2,3,...}, and the dates just to be the names of those categories. So 1 corresponds to the x in the first date on the chart, 2 to the second, ...

If you change the graph to a scatter plot, it will use the actual dates (assuming they are dates, not text that looks like dates), and the coefficients will change dramatically.
 
Last edited:
Upvote 0
If you have a line graph, then the chart considers the x values to be categories (1,2,3,...}, and the dates just to be the names of those categories. So 1 corresponds to the x in the first date on the chart, 2 to the second, ...

If you change the graph to a scatter plot, it will use the actual dates (assuming they are dates, not text that looks like dates), and the coefficients will change dramatically.

SHG, thanks for your input - this now makes sense. By me using date vales I was multiplying to the power of thousands rather than just the index of the variable.

Thanks to both of you for your time
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top