Syntax
| Parameter | Description |
|---|---|
| x | Parameter of the FORECAST function. |
| known_y | Parameter of the FORECAST function. |
| known_x | Parameter of the FORECAST function. |
Examples
Next month's sales
=FORECAST(13, B2:B13, A2:A13)
Expected cost at volume
=FORECAST(1000, C2:C20, D2:D20)
Interpolation
=FORECAST(5.5, B2:B11, A2:A11)
Common Errors
The known_y and known_x arrays have different lengths.
All x-values are identical (zero variance). The regression line is undefined.
Tips
FORECAST(x, y, x_known) = SLOPE(y, x_known)*x + INTERCEPT(y, x_known). It is a convenience function that combines both.
FORECAST assumes a straight-line relationship. If your data curves (exponential growth, seasonality), consider using LOGEST or time series methods instead.
If RSQ is low (below 0.5), the linear model is a poor fit and FORECAST predictions will be unreliable. Always validate the model first.
Try FORECAST in Viztab
Import your data and use FORECAST with 370+ other formulas. No signup required.
Open Viztab