The Excel help on polynomial fitting with LINEST is not very informative
so your question is quite frequent. I have fought a lot with exactly the
same problem AND solved it. Not very elegantly, but still it works and
you get the coefficients in separate cells that are updated if input
values change.
I have put the solution into a small worksheet with two different ways
of finding trendlines. If you dare display your e-mail address I can
forward it.
If not, just try this example where 13 sampled values are converted
into a 3'rd degree polynomium:
Put your sampled Y-values in column A from A3 to A15
Put your sampled X-values in column A from B3 to B15
In cell C3 write =B3^2 and in D3 write =B3^3
Copy the C3
3 to C3
15
In cell E3 write =LINEST(A3:A15;B3
15)
Mark cells E3 to H3 and press CTRL+SHIFT+ENTER (this enters an array
formula), and your coefficients should appear.
Check it with the trend on a graph of your sampled values
The method should be able to create up 16'th degree polynomiums, but I
haven't tried more than 6 and that works.
Niels