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.
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.
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.
Imagine you are analyzing sales data for a product over several months:
| Month | Sales |
|---|---|
| Jan | 200 |
| Feb | 250 |
| Mar | 300 |
| Apr | 350 |
| May | 400 |
You want to predict the sales for June based on the sales trend from the previous months.
To achieve this, you would use the FORECAST.LINEAR function as follows:
=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.When you apply the FORECAST.LINEAR formula to predict sales for June, the output would be:
| Month | Sales | Predicted Sales |
|---|---|---|
| Jan | 200 | |
| Feb | 250 | |
| Mar | 300 | |
| Apr | 350 | |
| May | 400 | |
| Jun | 450 |
In this case, the formula predicts that sales for June will be 450 based on the trend from the previous months.
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.
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!
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.
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.