Statistical function

TREND function

Fits a straight line (least squares) to known data and returns predicted y-values for new x-values, e.g. next months' sales.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (spills automatically in Microsoft 365 and Excel 2021+)

In every Excel versionWorks in Google Sheets

Syntax

TREND(known_y's, [known_x's], [new_x's], [const])
ArgumentWhat it means
known_y'sRequiredThe observed values (e.g. revenue).
known_x'sOptionalThe matching x-values (one or more columns). Defaults to 1, 2, 3, ...
new_x'sOptionalThe x-values to predict for. Defaults to known_x's (returns the fitted values).
constOptionalTRUE or omitted: normal intercept. FALSE: force the line through zero.

Returns: One predicted value per new_x, spilling when there are several.

How TREND works

TREND is Excel's straight-line forecasting tool. It fits the best line through your historical data, exactly as LINEST, SLOPE and INTERCEPT would, and then reads predictions off that line for whatever new x-values you supply. Typical uses: projecting next quarter's sales from a steady trend, estimating cost at a planned production level, or filling a trendline column next to actual figures for a chart.

TREND can handle several x columns at once (multiple regression), and it can return many predictions in one go: pass a range or array of new x-values and the results spill. For a single forecast with one x, FORECAST.LINEAR does the same job with a simpler syntax. A straight line assumes steady, additive change; for percentage growth use GROWTH, and for seasonal data consider FORECAST.ETS.

Examples

1Forecast next month's revenue

B8fx=TREND(B2:B7, A2:A7, A8)
AB
1MonthRevenue (k)
2148.2
3250.1
4353.8
5455
6558.9
7660.4
8763.26

Result: 63.26

The best-fit line rises about 2.53k per month. For month 7 it predicts 63.260000k (shown to 2 decimals).

2Spill a quarter's forecast

D2fx=TREND(B2:B7, A2:A7, {7;8;9})
ABCD
1MonthRevenue (k)
2148.263.26
3250.165.79
4353.868.32
5455
6558.9
7660.4

Three new months spill three predictions into D2:D4 (shown to 2 decimals).

3Trendline values beside the actuals

C2fx=TREND(B2:B7, A2:A7)
ABC
1MonthRevenue (k)
2148.248.07
3250.150.60
4353.853.13
545555.67
6558.958.20
7660.460.73

Without new_x's, TREND returns the line's value at each existing month, spilling into C2:C7 (shown to 2 decimals). Chart columns B and C together to show actuals against the trend.

4Predict with two drivers

C8fx=TREND(C2:C7, A2:B7, A8:B8)
ABC
1KmStopsMinutes
25224
312449
48335
520678
615352
73114
810340.0

Result: 40.0

Using distance and stops together, a 10 km route with 3 stops is predicted to take 40.038153 minutes (shown to 1 decimal).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 18 KB

Common errors and how to fix them

ErrorWhy it happensFix
#REF!known_y's and known_x's have different sizes, or new_x's has a different number of columns than known_x's.Make the shapes consistent.
#VALUE!A cell in the ranges is blank or text.Remove blank rows from the input data.
#SPILL!The cells where results should spill are occupied.Clear the spill area.

Tips

  • Forecasts get less reliable the further you project beyond your data.
  • Use dates directly as x-values; TREND then forecasts for any future date you supply.
  • Check the fit with RSQ before trusting a forecast.

Questions

What is the difference between TREND and FORECAST.LINEAR?

Both use the same straight line. FORECAST.LINEAR takes one new x and one x column; TREND can handle several x columns and return many predictions at once.

Can TREND predict exponential growth?

No, it fits a straight line. Use GROWTH for growth by a constant percentage.

Google Sheets

TREND also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

TREND in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechLINTREND
DanishTENDENS
FinnishSUUNTAUS
FrenchTENDANCE
ItalianTENDENZA
PolishREGLINW
Portuguese (Brazil)TENDÊNCIA
Portuguese (Portugal)TENDÊNCIA
RussianТЕНДЕНЦИЯ
SpanishTENDENCIA
TurkishEĞİLİM