FORECAST

Calculates the expected y-value for a specified x-value, using linear regression on a given data sample.

Parameter List

Syntax
FORECAST(xdata_ydata_x)
x

The independent value x on which to base the forecast of y (e.g. a future date, for a time-series, or a numerical value, for a range of numbers)

data_y

The range of cells with the dependent data. For example: A1:A20.

data_x

The range of cells with the independent data. For example: B1:B20.

Examples

FORECAST(2023-01-15, A2:A13, B2:B13) returns 1232.3