[Resubmitted with major second thoughts....]
JohnnyD wrote:
I'm pulling data (the stuff below) and I want to create a polynomial regression that will predict the next number. The problem is, I don't want to have to go through the charting process or the data analysis because I will be doing this for roughly 500 different items. Is there a way to do it via some sort of formula?
It is always a good idea to chart the data first. Then you might discover that a polynomial trendline does not really fit the data well. But for your example, perhaps an order-6 polynomial is indeed a good fit. To wit:
Nevertheless, even if a polynomial trendline fits your original data well, it is usually a poor predictor of y-values outside the range of the original data -- unless the original data is truly related by a polynomial function similar to the form of the Excel trendline.
You might see why if you extend your x-range by several months.
But to answer your question: you would use the LINEST function.
First, you need to decide what degree of polynomial to use. Again, that is difficult to do unless you chart the data first.
Suppose you choose an order-6 polynomial. Then you would select 7 original cells and array-enter (press ctrl+shift+Enter instead of just Enter) a formula of the form:
=LINEST(ydata, xdata^{1,2,3,4,5,6}))
where ydata and xdata are the ranges that contain the original data (e.g. A2:R2 and A1:R1).
Finally, to generate estimated-y values based on the coefficents returned by LINEST, you might enter a formula of the form:
=SERIESSUM(A1, 6, -1, $A$4:$G$4)
where A4:G4 is the range with LINEST results, and A1 might be the first cell in the xdata range.