SLOPE Function
Return the slope of the linear regression line through data points. known_y and known_x are the y-values and x-values of the points and must have the same number of values; otherwise SLOPE returns #N/A. X-values that are all equal return #DIV/0!. SLOPE takes two arguments; a third argument, the name x in the syntax, returns #VALUE!.
Syntax
SLOPE(known_y, known_x, x)
Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=SLOPE({1,2,3},{2,4,6})
The formula returns 0.5, because y grows by 1 when x grows by 2.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.