FORECAST

predicts a value along a linear trend · from excel · excel: verified match · sheets: verified match

signature

FORECAST(x, known_ys, known_xs)

returns: number

argumentrequired
x required
known_ys required
known_xs required

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

AB
1 102
2 204
3 306
fx =FORECAST(4, B1:B3, A1:A3) 0.8

errors

error values observed from the engine — each with a call that produces it.

errorproduced by
#DIV/0! =FORECAST(5, A1:A3, B1:B3)
#ERROR! =FORECAST(1, 2)

related

  • AVEDEV average of absolute deviations from the mean
  • AVERAGE.WEIGHTED average of values weighted by a second range
  • AVERAGEA averages values including text and logicals
  • AVERAGEIF averages cells that match a condition
  • AVERAGEIFS averages cells matching multiple conditions
  • BETA.DIST beta distribution