Hello Mr. Shorty,
Thank you for your reply. I have adapted my code to make a 2D array of the X values to be used in the LinEst function, however I get an error on the LinEst line of code.
The error is the following:
Run time error '1004' : Unable to get LinEst property of the Worksheet Function class.
I have 2 arrays one for the y values called K1L and a 2D array for the x values and x2 values called xL.
my xL array is as follows:
and my K1L array is:
I understand that this looks linear (and probably is very close), however everytime I run the code the arrays will change and a quadratic fit will be ncessary.
It seems like it should work with this line of code, but it gives the error above.
Thank you for your help.
Bookmarks