TREND

Short answer

Project a run-rate along a straight line, a row at a time

TREND(known_ys, [known_xs], [new_xs], [const])
Excel version
All versions
Also searched as
linear trend, trend line forecast, run rate projection, linear extrapolation, best fit line, multiple regression excel

What it returns

TREND fits a straight line through known data by least squares and returns the values on that line at new points. Give it twelve months of history and the month numbers 13 to 18, and it returns six projected values that continue the line.

It is the array version of FORECAST.LINEAR. Both fit the same line; FORECAST.LINEAR returns one prediction, TREND returns as many as you ask for. In Excel 365 the results spill into neighboring cells. In earlier versions TREND has to be entered as an array formula across the output range.

TREND also handles more than one driver. With several columns of x values it fits a multiple regression, such as cost against both volume and number of sites.

Its limit is the shape. A straight line is a reasonable short-term projection for a cost that drifts steadily upward. It is a poor projection for seasonal revenue, for anything that compounds, and for any line where a known event is coming.

Arguments that matter

ArgumentRequiredWhat it does
known_ysYesThe historical values.
known_xsNoThe matching x values, such as period numbers or a driver. Omitted, Excel uses 1, 2, 3 and so on.
new_xsNoThe x values to project for. Omitted, TREND returns the fitted values for the history itself.
constNoTRUE or omitted fits an intercept normally. FALSE forces the line through zero.

The const argument matters in cost work. Forcing the line through zero says that at zero activity, cost is zero, which is only true for a purely variable cost. For a cost with a fixed base, FALSE pushes the whole base into the slope and overstates the variable rate.

Omitting new_xs is useful too: the fitted values for the history, set beside the actuals, show how well a straight line describes the past.

In a financial model

TREND is a run-rate tool. Typical uses:

  • Projecting a steadily growing overhead line for a few months beyond the last actual, as a placeholder until a driver exists.
  • Extending a cost curve against volume, with volume as known_xs.
  • Producing a statistical comparison line for a forecast review.

It should not be the forecast for a material line without a reason the trend will continue. A straight line through history assumes the business keeps doing what it did, and the further out it projects, the less that holds. Bound the result and state the assumption, per bound every driver and write down what the model can’t do.

The output row runs left to right with the rest of the model’s time axis, per time runs left to right, always. A row of historical period numbers and a row of forecast period numbers make the formula self-explanatory.

Worked example

Twelve months of operating expenses, in thousands, in D10:O10, with month numbers 1 to 12 in D6:O6.

Month123456789101112
Opex ($000)412418421425431429436440444447452455

Projection for months 13 to 18, in P10, spilling right in Excel 365:

=TREND(D10:O10, D6:O6, SEQUENCE(1, 6, 13))

Result: 458.9, 462.8, 466.6, 470.4, 474.2 and 478.0. The line rises by about 3.8 per month, from a fitted starting level of 409.4.

Fitted values for the history, to compare against actuals:

=TREND(D10:O10, D6:O6)

The const effect on a cost fit. Using the warehouse data from the FORECAST.LINEAR page, cost in C5:C12 against units in B5:B12, the predicted cost at 15,000 units:

=TREND(C5:C12, B5:B12, 15000)
=TREND(C5:C12, B5:B12, 15000, FALSE)

The first returns 938.78, with a fixed base of about 218. The second, forced through zero, returns 1,027.49, because the whole fixed base is now treated as variable cost: about $68.50 per unit instead of $48. For a cost with a real fixed component, leave const as TRUE.

Old way vs new way

The manual version of a run-rate projection is last month plus the average monthly change:

=O10+(O10-D10)/11

It uses only the first and last months, so one unusual month at either end moves the whole projection. TREND weighs all twelve:

=TREND(D10:O10, D6:O6, SEQUENCE(1, 6, 13))

Where it breaks

A seasonal line gets a straight forecast. TREND draws through the peaks and troughs and projects neither. Fix: use FORECAST.ETS for seasonal series, or trend the deseasonalized figures.

The spill range shows #SPILL!. Something sits in the cells the result needs. Fix: clear the six cells to the right, or move the formula.

In older Excel, only the first value appears. TREND was entered in a single cell. Fix: select the whole output range, type the formula, and confirm with Ctrl+Shift+Enter.

The variable cost per unit is too high. const was set to FALSE on a cost with a fixed base. Fix: leave it TRUE unless the cost is genuinely zero at zero activity.

The projection runs years ahead. A line fitted on twelve months is projecting five years. Fix: limit statistical projections to a short horizon and switch to drivers beyond it.

Related functions

  • FORECAST.LINEAR. The same line, one prediction per formula.
  • FORECAST.ETS. For series with a seasonal pattern.
  • GROWTH. The exponential equivalent, for values that compound.
  • SEQUENCE. Generates the future period numbers for new_xs.
  • RRI. A compound growth rate between two points, the simpler alternative for annual projections.
  • The play bound every driver applies to every statistical projection.

All functions