LINEST (KnownYValues, KnownXValues?) LINEST (KnownYValues; KnownXValues?)
KnownYValues
The set of known vertical values. This array must have the same size as the KnownXValues parameter, if that parameter is provided.
KnownXValues
Returns
An array containing two values corresponding to m and b in the equation y = m * x + b , describing a straight line that best fits the given data.
Finds a straight line, y = m * x + b , that best fits the given data, and returns an array containing two values corresponding to m and b in the equation above. This function uses linear regression.