Syntax
| Parameter | Description |
|---|---|
| known_y | Parameter of the INTERCEPT function. |
| known_x | Parameter of the INTERCEPT function. |
Examples
Fixed cost estimate
=INTERCEPT(C2:C20, B2:B20)
Baseline metric
=INTERCEPT(D2:D13, A2:A13)
Full regression equation
=INTERCEPT(Y, X) & " + " & SLOPE(Y, X) & "x"
Common Errors
The known_y and known_x arrays have different lengths.
All x-values are the same (zero variance in x), making the regression line undefined.
Tips
The intercept assumes x=0 is a valid input. If your x-values range from 50 to 100, the intercept at x=0 is an extrapolation and may not make practical sense.
Like SLOPE, the dependent variable (y) is the first argument. Swapping them gives a different and incorrect intercept.
Instead of manually computing SLOPE*x + INTERCEPT, use FORECAST(x, known_y, known_x) which does the same calculation in one step.
Try INTERCEPT in Viztab
Import your data and use INTERCEPT with 370+ other formulas. No signup required.
Open Viztab