Contact

TREND Function in Google Sheets: Formula, Examples & Troubleshooting

Array Intermediate Google Sheets

Predict linear values with TREND in Google Sheets. Work through fitted values, new x values, the zero-intercept option, and a two-predictor forecast.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: TREND returns values from a least-squares straight-line fit. Use its third argument for the predictor values you want to estimate. For the workload example below, =TREND(B2:B5,A2:A5,D2:D3) returns 13.5 and 15.6 minutes for five and six tickets.

Verification: NOT_TESTED_IN_GOOGLE_SHEETS. The October 17, 2026 documentation review supports the contract. All expected numerical outputs were independently calculated, rather than obtained from a live Google Sheets workbook.

Syntax and arguments

=TREND(known_data_y, [known_data_x], [new_data_x], [b])
  • known_data_y: measured dependent values.
  • known_data_x: paired predictor values; defaults to 1, 2, 3, … .
  • new_data_x: predictors at which to estimate y; defaults to the known predictors.
  • b: TRUE by default, fitting an intercept; FALSE forces that intercept to zero.

A column of outcomes can use multiple predictor columns. Two-dimensional outcomes require matching known-predictor dimensions or an omitted known-predictor argument. These rules are documented in Google’s TREND help. The model y = m*x+b is linear; do not confuse it with percentage-compounding growth.

Prepare paired measurements

Enter the following in A1:B5:

Row A · Tickets B · Minutes
1 Tickets Minutes
2 1 5
3 2 7
4 3 10
5 4 11

In D1 type New tickets, then put 5 in D2 and 6 in D3. Leave E2:E3 empty.

  1. Type Predicted minutes in E1.
  2. Enter =TREND(B2:B5,A2:A5,D2:D3) in E2.
  3. Expect 13.5 in E2 and 15.6 in E3.

The independently fitted equation is y = 2.1*x + 3. Substituting 5 gives 10.5+3 = 13.5; substituting 6 gives 12.6+3 = 15.6. The estimate increases by 2.1 minutes per additional ticket. The result is a modeled average relationship, not a guaranteed completion time for an individual case.

Fitted values are not copies of the measurements

Leave G2:G5 empty, then enter =TREND(B2:B5,A2:A5) in G2. Because new predictors are omitted, the expected fitted values are 5.1, 7.2, 9.3, 11.4 for the existing ticket counts.

Put =B2-G2 in H2 and copy through H5. Expected residuals are −0.1, −0.2, 0.7, −0.4. The differences explain why copying the measured Minutes column is not equivalent to TREND. A residual plot can reveal patterns concealed by a single summary error.

For a scalar estimate inside the measured range, =TREND(B2:B5,A2:A5,2.5) has expected result 8.25. This is interpolation. Predictions for five or six tickets are extrapolations because the largest observed count is four. Keep that distinction in the report.

Advanced application: more than one predictor

On a fresh sheet, enter A1:C7:

Row A · Tickets B · Escalations C · Minutes
1 Tickets Escalations Minutes
2 0 0 5
3 1 0 7
4 0 1 8
5 1 1 10
6 2 0 9
7 2 1 12

Put headings Tickets and Escalations in E1:F1, and put 3 and 2 in E2:F2. In G2 enter:

=TREND(C2:C7,A2:B7,E2:F2)

Expected result: 17 minutes. This constructed dataset follows 5 + 2*tickets + 3*escalations; the new row gives 5+6+6. Keep predictor columns in the same order in both ranges. Reversing E2:F2 would ask about two tickets and three escalations, a different scenario giving 18 minutes.

The model is exact only because the practice data were constructed that way. Real fitting needs more representative observations, independent predictors, and a check that a linear relationship is reasonable.

Zero-intercept option and common mistakes

For the first dataset, =TREND(B2:B5,A2:A5,D2:D3,FALSE) has expected results 15.5 and 18.6. Forcing the line through zero gives slope 3.1, rather than keeping the old slope and merely deleting its intercept. Use this constraint only when the process genuinely supports it.

Omitting known x values is harmless for the first dataset because its x column already equals 1, 2, 3, 4. It is not harmless for irregular dates, skipped time periods, or measurements beginning at zero. Keep those predictors explicit.

Errors and troubleshooting

Check equal observation counts before interpreting a result. Remove headings from measurement ranges, verify that both ranges refer to the same rows, and keep a clear destination for every returned value. Google’s array guidance explains why multi-cell results use neighboring cells.

A constant predictor cannot identify an unconstrained slope; redundant predictors undermine a multi-variable fit. Large extrapolations can be mathematically valid but practically implausible. The cited TREND page does not supply a complete error-code or text-coercion table, so those cases are not asserted as tested behavior here. Inspect the actual cell error and simplify to the numeric practice example first.

Availability and portability

TREND is documented in the rolling Sheets service as of this review. The sources do not establish its first launch or a last functioning release; retirement is not established either. This guide uses ordinary spreadsheet cells and does not claim a separate Connected Sheets contract. English function names and comma separators are used; consult Sheets settings when adapting a localized file. No other spreadsheet engine’s singular-data behavior is presumed equivalent.

Related published guides: SLOPE, INTERCEPT, and GROWTH.

First-party references

Reviewed October 17, 2026: TREND, array results, and locale/function settings.