FORECAST.LINEAR

predicts a value on the linear regression line · from excel · excel: not yet compared · sheets: not yet compared

signature

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

B
1 2
2 4
3 6
4 8
5 10
fx =FORECAST.LINEAR(2, B1:B10, B1:B10) 2

errors

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

errorproduced by
#VALUE! =FORECAST.LINEAR(2, 2, 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