Returns the slope of a straight line from the linear regression of the given data set.
Syntax
SLOPE(y_values; x_values)
y_values: The array or range containing the known (dependent) values. Eg., A2:A6
Remarks
Text, logical values, and empty cells are ignored.
Examples
|
Formula |
Result |
|
=SLOPE(A2:A6;B2:B6) |
-0.139494333 |
|
=SLOPE(A2:A4;B2:B4) |
-0.038461538 |
|
=SLOPE({1;2;3};{5;12;8}) |
0.121621622 |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
|
#N/A! |
|
Similar Functions
COVAR
CORREL
FORECAST
INTERCEPT
RSQ
STEYX