Google Sheets FORECAST Function: Syntax, Examples & Tips

The FORECAST function predicts future values based on existing data trends, using linear regression to estimate outcomes.
Google Sheets
FORECAST(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 the FORECAST Function?
  3. A Practical Example
  4. FORECAST Formula
  5. Result of the Formula
  6. Why Use FORECAST?
  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 existing data.

data_y:
The dependent array or range of data that contains the values you want to predict.

data_x:
The independent array or range of data that contains the values corresponding to data_y, which is used to establish the relationship for the forecast.

What is the FORECAST Function?

The FORECAST function in Google Sheets is a statistical tool used to predict future values based on existing data. It utilizes linear regression to analyze the relationship between a dependent variable and one or more independent variables. This function is particularly useful for forecasting trends in data over time, such as sales, expenses, or any other measurable quantities.

In simpler terms, the FORECAST function allows you to estimate future outcomes based on historical data, helping you make informed decisions.

A Practical Example

Imagine you are analyzing monthly sales data for a product over the past six months:

Sales Data Table:

MonthSales
Jan200
Feb250
Mar300
Apr350
May400
Jun450

You want to forecast the sales for July based on the trend observed in the previous months.

FORECAST Formula

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

Google Sheets
=FORECAST(7, B2:B7, A2:A7)

In this formula:

  • 7 is the x-value for which you want to predict the sales (July, the 7th month).
  • B2:B7 is the range of known y-values (Sales).
  • A2:A7 is the range of known x-values (Months).

Result of the Formula

When you apply the FORECAST formula, it will return a predicted sales value for July based on the trend from the previous months. For example, if the forecasted sales for July is 500, your updated table would look like this:

MonthSales
Jan200
Feb250
Mar300
Apr350
May400
Jun450
Jul500

Why Use FORECAST?

The FORECAST function is beneficial because it provides a straightforward way to make predictions based on historical data. It helps in planning and decision-making by allowing businesses to anticipate future performance. Additionally, it can be used in various fields such as finance, marketing, and operations to analyze trends and forecast outcomes.

Key Takeaways:

  • FORECAST: A statistical function that predicts future values based on historical data.
  • Linear Regression: Utilizes linear regression to analyze relationships between variables.
  • Planning Tool: Aids in forecasting trends, helping businesses make informed decisions.
  • Common Use Cases: Ideal for sales forecasting, budget planning, and any scenario where future outcomes need to be estimated.

The FORECAST function is an essential tool 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 sales data for the past 12 months in Column A and corresponding revenue in Column B. Using the FORECAST formula, you can predict next month's revenue based on historical trends, enabling better budgeting and financial planning for your business.

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.