I have a large array of data (approx 2000 elements) and I would like to perform polynomial curve fitting on it. If I paste the data into excel then add a 6th order polynomial trendline to the data, this trendline is exactly what I want to generate with my code. Can anyone point me in the right direction as to how to go about this (as my maths is very rusty).

Thanks

Mark