Syntax
| Parameter | Description |
|---|---|
| known_y | Parameter of the SLOPE function. |
| known_x | Parameter of the SLOPE function. |
Examples
Revenue growth rate
=SLOPE(B2:B13, A2:A13)
Cost per unit
=SLOPE(C2:C50, D2:D50)
Negative trend
=SLOPE(E2:E365, ROW(E2:E365))
Common Errors
The arrays have different numbers of data points. Known_y and known_x must be the same length.
All x-values are identical (zero variance in x). A vertical line has undefined slope.
Tips
SLOPE(y, x) — the dependent variable (y) comes first, then the independent variable (x). Getting them reversed gives the reciprocal of the correct slope.
The regression line is y = SLOPE*x + INTERCEPT. With both values, you can predict y for any x value.
A slope is meaningless if the relationship is weak. Check RSQ(y,x) first — if it is low (below 0.5), the slope may not be a reliable predictor.
Try SLOPE in Viztab
Import your data and use SLOPE with 370+ other formulas. No signup required.
Open Viztab