How do I fit xy data to a 6th order polynomial for use in an equation?

R

Randy

I have X and Y column data, and want to set a cell equal
to the trendline values of that data, but I want the
trendline equation to represent a 6th order polynomial,
not a linear trendline.
My only option now is to add a trendline to a graph of the
data, and then re-write that equation in a cell, but i
don't want to have to create a graph and re-write the
equation every time. Any Ideas?
Randy
 
J

Jerry W. Lewis

=LINEST(B1:B6,A1:A6^{1,2,3,4,5,6})
array entered (Ctrl-Shift-Enter

Depending on your data, the chart trendline may be significantly more
accurate than LINEST(). David Braden has posted VBA code to extract the
coefficients directly from the chart into cells

http://groups.google.com/[email protected]

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top