FORECAST(x, data_y, data_x)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
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.
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.
Imagine you are analyzing monthly sales data for a product over the past six months:
| Month | Sales |
|---|---|
| Jan | 200 |
| Feb | 250 |
| Mar | 300 |
| Apr | 350 |
| May | 400 |
| Jun | 450 |
You want to forecast the sales for July based on the trend observed in the previous months.
To achieve this, you would use the FORECAST function as follows:
=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).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:
| Month | Sales |
|---|---|
| Jan | 200 |
| Feb | 250 |
| Mar | 300 |
| Apr | 350 |
| May | 400 |
| Jun | 450 |
| Jul | 500 |
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.
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!
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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.