FORECAST.LINEAR Function
Predict a value on the linear trend of known data. x is the point to predict, known_y the dependent values and known_x the independent values; pairs with a text value are ignored. Arrays of different sizes return #N/A, and known_x values without variance return #DIV/0!.
Syntax
FORECAST.LINEAR(x, known_y, known_x)
Category: Statistics. Minimum arguments: 3. Maximum arguments: 3.
Available for supported offline calculation.
Examples
=FORECAST.LINEAR(4,{2,4,6},{1,2,3})
The formula returns 8: the known values follow y = 2x, so the prediction for x = 4 is 8.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.