Forecast one value
| A | B | |
|---|---|---|
| 1 | x | y |
| 2 | 1 | 3 |
| 3 | 2 | 5 |
| 4 | 3 | 7 |
| 5 | 4 | 9 |
Formula: D2: =TREND(B2:B5,A2:A5,5)
Result: 11
The fitted line y=2x+1 predicts eleven.
TREND with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the TREND Excel guide; check the function help in Google Sheets for its own argument list.
| A | B | |
|---|---|---|
| 1 | x | y |
| 2 | 1 | 3 |
| 3 | 2 | 5 |
| 4 | 3 | 7 |
| 5 | 4 | 9 |
Formula: D2: =TREND(B2:B5,A2:A5,5)
Result: 11
The fitted line y=2x+1 predicts eleven.
| A | B | |
|---|---|---|
| 1 | x | y |
| 2 | 1 | 3 |
| 3 | 2 | 5 |
| 4 | 3 | 7 |
| 5 | 4 | 9 |
Formula: D2: =TREND(B2:B5,A2:A5,3)
Result: 7
At x=3 the fitted value is seven.
| A | B | |
|---|---|---|
| 1 | x | y |
| 2 | 1 | 2 |
| 3 | 2 | 4 |
| 4 | 3 | 6 |
Formula: D2: =TREND(B2:B4,A2:A4,4,FALSE)
Result: 8
With const FALSE, the fitted line is constrained through the origin.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in D2: =TREND(B2:B7,A2:A7,7)
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Revenue | Result | |
| 2 | 1 | 120 | 194.133333333 | |
| 3 | 2 | 135 | ||
| 4 | 3 | 150 | ||
| 5 | 4 | 148 | ||
| 6 | 5 | 170 | ||
| 7 | 6 | 185 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page