Get help

Help center

Guides and answers

Contact support

Write to our team

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Finance

Turn manual finance work into reports that update themselves.

What Finance teams automate

  • Track payables and receivables
  • Build cash flow statements
  • Compare budget against actuals

Inventory and manufacturing

See stock levels and automate ordering.

What inventory and manufacturing teams automate

  • Track inventory across multiple sites
  • Connect sales, purchasing, and warehouse data
  • Link a barcode scanner to your sheet

HR

Run recruitment, attendance, and OKR tracking from your sheets.

What HR teams automate

  • Track recruitment and onboarding
  • Record team OKRs and results
  • Track check-ins, check-outs, and leave

Project management

Assign tasks and track hours without manual updates.

What project teams automate

  • Assign tasks and track status changes
  • Estimate effort and log hours worked
  • Track milestones across projects

Sales and CRM

Track leads and sales performance with automated reports.

What sales teams automate

  • Track and convert leads
  • Set sales goals and track team metrics
  • Monitor sales KPIs on dashboards

Education

Automate attendance, grades, and school purchasing.

What schools automate

  • Track attendance and notify parents
  • Record and compare class grades
  • Track inventory lent to students and staff

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Get started

Templates

Ready-made workflows to start from

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Help center

Guides and answers

Contact support

Write to our team

Workflows

Build processes with your team

Automations

Connect files and automate tasks

Google Sheets FORECAST function (+ examples)

Financial forecasting is as popular as ever, but the tools have certainly improved. If you’ve ever had to spend time on linear regressions, you’ll be happy to meet the Google Sheets FORECAST function. The function will take your historical data and return the predicted future value, so you can use it to analyze trends in your financial data. If your data shows exponential growth, you may want to consider using the GROWTH formula instead.

In this article, you will learn about the FORECAST function and some similar functions available in Google Sheets. You will also learn how to use the formula to extrapolate future sales and expenses values based on historical data.

Google Sheets FORECAST function

The FORECAST function can be used to calculate future y-values, based on known x- and y-values. Linear regression is used to find the best fit for existing data and calculate future values based on this relationship. You can get the same results using TREND, which is an array formula.

You may have noticed that there is a FORECAST.LINEAR formula in Google Sheets. Using this will get you the same results as using FORECAST or TREND, as they all use the least squares method to find the best fit.

FORECAST formula syntax

The syntax for the FORECAST function is the following:

=FORECAST(x, data_y, data_x)

  • x represents the value we want to forecast (y) on the x-axis.
  • data_y represents the array of existing values for the dependent variable.
  • data_x represents the array of existing values for the independent variable.

There are some important points to keep in mind when using the FORECAST formula:

  • x values must be numerical or you’ll get a “#VALUE!” error.
  • data_y and data_x must have the same dimensions or you’ll get an “#N/A” error.

Use FORECAST to calculate projected values

First, you’ll see a practical example of FORECAST to calculate the projected value for sales in a given year based on data from previous years. Second, you’ll learn how to apply this formula for projected expenses for a quarter based on the previous three.

Since FORECAST is not an array formula, this will require an extra step.

Use FORECAST to calculate projected sales

In this example, FORECAST is used to predict the value for 2022, based on the known sales values for the years 2016 to 2021. Each column should contain data corresponding to the year value and the sales.

1. In Google Sheets, click on the cell where you want the projected sales value to appear.

Forecast sheets — Year and Sales columns for 2016 to 2021 with cell B8 selected next to 2022

2. Type in the FORECAST formula as shown below.

Forecast sheets — =FORECAST( typed in cell B8 with the x, data_y, data_x hint

3. Select the value of x for which you want the predicted value. Add a comma to move to the following argument.

Forecast sheets — =FORECAST(A8 with cell A8, the year 2022, picked as x

4. Select the cells containing data_y, the known values for the dependent variable. Then include all the cell values from sales. Add a comma to move to the last argument in the formula.

Google Sheets forecast — =FORECAST(A8,B2:B7, with the sales values in B2:B7 selected

5. Select the cells containing data_x, the known values for the independent variable. Here, cell values correspond to the year. Close the parenthesis and press “Enter”.

Google Sheets forecast — =FORECAST(A8,B2:B7,A2:A7) with the years in A2:A7 selected

6. That’s it. The projected value for your chosen year should appear as shown below.

Google Sheets forecast — projected 2022 sales of $300,180.00 in cell B8

Use FORECAST to calculate projected expenses

Now, you’ll learn how to use FORECAST and ARRAYFORMULA to get the projected expenses for the next three months, based on the known values for the last nine months.

1. Open the historical data you want to use in Google Sheets.

Forecast sheets — Month and Expenses columns with months 1 to 9 filled and months 10 to 12 empty

2. Select the cells where you want the projected expenses to appear.

Forecast sheets — cells B11:B13 selected next to months 10, 11 and 12

3. Type in the ARRAYFORMULA, as shown below.

Google spreadsheet forecast — =ARRAYFORMULA( typed in cell B11 with the array_formula hint

4. After the parenthesis, type FORECAST and open a new parenthesis.

Google spreadsheet forecast — =ARRAYFORMULA(FORECAST( typed in B11 with the x, data_y, data_x hint

5. Instead of selecting just one cell for the value of x, select the array. Add a comma to move to the second argument of the formula.

Google spreadsheet forecast — FORECAST(A11:A13, with months 10 to 12 as the x array

6. Select the cells containing data_y, the known values for the dependent variable. Add a comma to move to the last argument in the formula.

Google spreadsheet forecast — FORECAST(A11:A13,B2:B10, with the expenses in B2:B10 selected

7. Select the cells containing data_x, the known values for the independent variable. Here, select the month values of the first three quarters.

Google spreadsheet forecast — FORECAST(A11:A13,B2:B10,A2:A10 with months 1 to 9 selected

8. Remember to close both parentheses before pressing “Enter”.

Google spreadsheet forecast — =ARRAYFORMULA(FORECAST(A11:A13,B2:B10,A2:A10)) with both parentheses closed

9. That’s it. The projected expenses for the next three months are shown below.

Google spreadsheet forecast — projected expenses of $11,975.50, $12,133.90 and $12,292.30 for months 10 to 12

Conclusion

The FORECAST formula in Google Sheets can be used to predict future values based on historical data. As with any prediction of the future, it shouldn’t be taken too literally, as it assumes that the relationship between the variables will remain unaffected in the future. However, if you have historical data that shows a linear trend and you don’t foresee big changes in the near future, the FORECAST formula can be very useful.

After reading this article, you know about the FORECAST function and how to use it to calculate projected yearly sales and monthly expenses. You’ve also learned how to use the ARRAYFORMULA to obtain multiple predicted values from FORECAST.

To learn more about financial formulas and forecasting, check out these related articles:

You may also like…

google sheets features and formulas

How to find nominal interest rate using Google Sheets

Sarah is a young professional making significant financial decisions. From credit cards to mortgages, student loans, and investment...
google sheets features and formulas

Pull Google Calendar data into Google Sheets using Apps Script

This post was originally published in our community forum. Objective : This guide demonstrates how to use Google Apps Script to pull data...
google sheets features and formulas

Using the PROPER function to capitalize the first letter of each word in Google Sheets

Note: This post was originally published in our community forum. Ever found yourself needing to clean up a list of names, titles, or any...