Google Sheets FORECAST.LINEAR Function: Syntax, Examples & Tips

The FORECAST.LINEAR function predicts future values based on existing data using linear regression analysis.
Google Sheets
FORECAST.LINEAR(x, data_y, data_x)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is FORECAST.LINEAR?
  3. A Practical Example
  4. FORECAST.LINEAR Formula
  5. Result of the Formula
  6. Why Use FORECAST.LINEAR?
  7. Key Takeaways:
  8. Example use case

Parameters

x:
The data point for which you want to predict a value based on the linear relationship established by the data sets.

data_y:
The dependent data set (y-values) that you want to use for the forecast. This range should contain the values that correspond to the x-values.

data_x:
The independent data set (x-values) that corresponds to the dependent data set. This range should contain the values that you want to use to establish the relationship with the y-values.

What is FORECAST.LINEAR?

The FORECAST.LINEAR function in Google Sheets is a statistical tool used to predict future values based on existing data. It uses linear regression to calculate the expected value of a dependent variable based on the relationship with one or more independent variables. This function is particularly useful for forecasting trends and making data-driven decisions.

In simpler terms, FORECAST.LINEAR allows you to estimate future outcomes based on historical data, helping you to plan and strategize effectively.

A Practical Example

Imagine you are analyzing sales data for a product over several months:

Sales Data Table:

MonthSales
Jan200
Feb250
Mar300
Apr350
May400

You want to predict the sales for June based on the sales trend from the previous months.

FORECAST.LINEAR Formula

To achieve this, you would use the FORECAST.LINEAR function as follows:

Google Sheets
=FORECAST.LINEAR(6, B2:B6, A2:A6)

In this formula:

  • 6 is the month number for which you want to predict sales (June).
  • B2:B6 is the range containing the historical sales data.
  • A2:A6 is the range containing the corresponding month numbers.

Result of the Formula

When you apply the FORECAST.LINEAR formula to predict sales for June, the output would be:

MonthSalesPredicted Sales
Jan200
Feb250
Mar300
Apr350
May400
Jun450

In this case, the formula predicts that sales for June will be 450 based on the trend from the previous months.

Why Use FORECAST.LINEAR?

FORECAST.LINEAR is beneficial because it provides a straightforward way to make predictions based on historical data. It helps in identifying trends and making informed decisions. Additionally, it allows businesses to prepare for future demands and allocate resources effectively.

Key Takeaways:

  • FORECAST.LINEAR: A Google Sheets function that predicts future values based on existing data using linear regression.
  • Trend Analysis: Helps in identifying trends and making data-driven decisions.
  • Simplicity: Offers a simple way to forecast future outcomes without complex calculations.
  • Common Use Cases: Ideal for sales forecasting, budgeting, and any scenario where predicting future values is necessary.

FORECAST.LINEAR is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and strategic planning.

Happy forecasting!

Example use case

You have a sales data table with months in Column A and revenue in Column B. Use the FORECAST.LINEAR formula to predict future sales based on historical data, helping your team set realistic targets and make informed business decisions.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.