ReferenceFunctionsStatistics Functions
SLOPE
Returns the slope of the linear regression line for paired data.
Summary
SLOPE fits y = m*x + b and returns m, the rate of change in y per unit of x.
Remarks
known_yandknown_xmust have the same numeric length.- Returns
#N/Afor mismatched lengths. - Returns
#DIV/0!if allxvalues are identical.
Examples
Positive slope from direct arrays
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
2
Negative slope from ranges
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
-2
Related functions
Runtime metadata
Category
Statistics
Signature
SLOPE(arg1, arg2, ... argN: Number (Range))This function accepts a repeating argument pattern (min args: 2).
Arity
min 2, max 1
Arguments
arg1Number · Range · coercion NumberLenientText
Caps
PUREREDUCTIONNUMERIC_ONLY
Source