TREND Function

Excel Functions › Statistical

All versions Statistical

The Excel TREND function fits a straight line to your known data with least squares and returns the predicted y-values along that line — for the existing x's or for new ones you supply.


Quick answer:
=TREND(B2:B7, A2:A7, A8:A10) predicted y-values for new x's in A8:A10

Syntax

=TREND(known_ys, [known_xs], [new_xs], [const])
ArgumentDescription
known_ysRequiredThe known dependent (y) values.
known_xsOptionalThe known independent (x) values. If omitted, Excel uses {1,2,3,…}.
new_xsOptionalThe x-values for which you want predicted y's. Defaults to known_xs (the fitted values).
constOptionalTRUE (or omitted) fits a normal intercept; FALSE forces the line through the origin.

How to use it

TREND returns an array of fitted values, so it spills down a column (or you confirm it with Ctrl+Shift+Enter in older Excel). It is the multi-point cousin of FORECAST: feed it several new_xs and it returns a predicted y for each.

=TREND(B2:B7, A2:A7, A8:A10) // y predicted for each x in A8:A10

With no new_xs, TREND returns the fitted y for every original x — the points on the regression line. Setting const to FALSE forces the line through the origin (intercept = 0).

=TREND(B2:B7, A2:A7) // fitted values on the line
A (x)B (y)
212
324
435
548
659
76=TREND(B2:B6,A2:A6,A7) → 11

TREND vs FORECAST: FORECAST predicts a single y for one x; TREND predicts a whole array of y's at once. Both use the same least-squares line, so a single TREND value matches the FORECAST result.

Try it: interactive demo

Live demo

Pick a TREND example to see the formula and its result.

Result:

Practice workbook

📊
Download the free TREND practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Why does TREND spill into several cells?
TREND returns an array — one predicted y for each x you ask about. In Excel 365 it spills automatically; in older versions select the output range and confirm with Ctrl+Shift+Enter.
What happens if I omit new_xs?
TREND returns the fitted y-value for each of the original x's — the points lying exactly on the regression line, which is handy for plotting the trendline.
How is TREND different from FORECAST?
FORECAST predicts one y from one x; TREND predicts a whole array of y's from an array of x's. The underlying linear fit is identical, so they agree on any single point.
What does the const argument do?
TRUE (the default) lets Excel calculate the intercept normally. FALSE forces the regression line through the origin, so the predicted y is 0 when x is 0.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: FORECAST · LINEST · GROWTH · SLOPE · INTERCEPT · STEYX