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

FORECAST.LINEAR function

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

Syntax

=FORECAST.LINEAR(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.LINEAR

FORECAST.LINEAR takes 3 required arguments. Type =FORECAST.LINEAR( 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.LINEAR(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.