1. Home
  2. Functions
  3. Statistical
  4. FORECAST
StatisticalCompatibility

FORECAST function

Predicts a value for x from the straight line that best fits known x and y values.

Syntax

=FORECAST(x, known_ys, known_xs)

Arguments

ArgumentRequiredDescription
xRequiredThe x value to predict for
known_ysRequiredThe dependent values
known_xsRequiredThe independent values

How to use FORECAST

FORECAST is kept so older workbooks keep working. It calculates the same way as FORECAST.LINEAR, which is the name to use in new formulas.

FORECAST takes 3 required arguments. Type =FORECAST( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=FORECAST(30, {6,7,9,15,21}, {20,28,31,38,40})Result 10.60725309

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.