• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel FORECAST.LINEAR Function

You are here: Home / Excel Functions / Excel FORECAST.LINEAR Function

The Excel FORECAST.LINEAR function is new in Excel 2016 and forms part of the new suite of forecasting functions.

The FORECAST.LINEAR function uses the least squares or linear regression method to forecast future values based on historical figures. It’s useful for forecasting sales, stock requirements, trends etc.

If you have an earlier version of Excel you can use the identical FORECAST function that shares the same syntax and results.

Excel FORECAST.LINEAR Function Syntax

 
Syntax: =FORECAST.LINEAR(x, known_y’s, known_x’s)
 

Excel FORECAST.LINEAR Function Arguments

 
Argument Description
x This is the next data point that you want to forecast. E.g. it might be a date, or period
known_y's The range of cells containing your historical values you're basing your forecast on
known_x's The range of cells containing the periods you already know
 

Notes:

  • All arguments are required.
  • The known y's and x's must contain the same number of data points.
  • x must be a numeric value, otherwise the #VALUE! Error will be returned.
  • The #DIV/0! Error will be returned if the variance of known_x's equals zero.

Excel FORECAST.LINEAR Function examples

Let’s take some sales data for 2017 that we’d like to forecast for the first 6 months of 2018. In a separate column I’ll insert my FORECAST.LINEAR function:

Excel FORECAST.LINEAR Function

Notice the ‘x’ argument cell reference is relative, so that when I copy the formula down it picks up the next date and so on. Meanwhile the known_x and known_y references are absolute.

BTW, the month names in column C are actually dates formatted to display the month name, thus satisfying the requirement that x values must be numeric.

Chart Forecast Data

Notice that I entered the forecast figures in a separate column. I did this so that I can colour the forecast line different to the actual sales. To do this I need it entered as a separate series in the chart:

chart forecast data

Download the Workbook

Enter your email address below to download the sample workbook.

By submitting your email address you agree that we can email you our Excel newsletter.
Please enter a valid email address.

Download the Excel Workbook. Note: This is a .xlsx file. Please ensure your browser doesn't change the file extension on download.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.