I have a set of y values and their corresponding x values.
I want a function that will take those values as input and return the a and b values of the y=ax+b equasion of the straight line that occurs using the least squares method.
I tried to use both TREND and LINEST functions but with no success.
Thank you very much
I want a function that will take those values as input and return the a and b values of the y=ax+b equasion of the straight line that occurs using the least squares method.
I tried to use both TREND and LINEST functions but with no success.
Thank you very much