FORECAST.LINEAR Function in Excel: Predict a Value From a Trend

FORECAST.LINEAR Function in Excel: Predict a Value From a Trend featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min read

StatisticalLevel: ExpertAvailable in: Excel 2016+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Common errors and fixes
  5. FORECAST.LINEAR in practice
  6. Where you will use it
  7. Worked example
  8. Mistakes people make
  9. Related functions
  10. Continue learning

FORECAST.LINEAR predicts a y-value for a given x using a straight-line trend fitted to past data.

Advertisement

Syntax

=FORECAST.LINEAR(x, known_ys, known_xs)
Argument What it means
x The point to predict (e.g. next month number).

Examples

Example 1

=FORECAST.LINEAR(13, C2:C13, A2:A13)

Month 13 sales from months 1–12.

Common errors and fixes

You see Why, and the fix
Forecast looks silly Data has seasonality; a straight line ignores it. Try FORECAST.ETS or the Forecast Sheet (Data tab).

FORECAST.LINEAR in practice

Where you will use it

  • Straight-line sales projection
  • Estimate cost at a new volume
  • Simple trend lines

Worked example

Month no.FormulaResult
7=ROUND(FORECAST.LINEAR(A2,{100,108,115,124,130,139},{1,2,3,4,5,6}),1)146.3
8=ROUND(FORECAST.LINEAR(A3,{100,108,115,124,130,139},{1,2,3,4,5,6}),1)154
12=ROUND(FORECAST.LINEAR(A4,{100,108,115,124,130,139},{1,2,3,4,5,6}),1)184.9

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Seasonal dataUse FORECAST.ETS
Argument orderknown_y's before known_x's

TREND Β· LINEST Β· FORECAST.ETS

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Statistics basics22 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong