FORMULAS & FUNCTIONS

Sales Forecast in Excel: FORECAST.LINEAR, TREND and Seasonality

Most sales have two parts: a trend (growing or shrinking over time) and a seasonal pattern (busy and quiet months that repeat every year). A straight-line forecast only captures the trend. This guide builds both in Excel: a quick forecast with FORECAST.LINEAR and TREND, then a seasonal forecast that is far more accurate, and a back-test that proves it on real history.

Excel sales forecast for 2026 using trend and seasonality, with a seasonal forecast total of 690,348, 8.6 percent above 2025, and a back-test error of 1.3 percent.
Trend x seasonal index.

Quick answer

GoalFormula
Straight-line forecast for period 37=FORECAST.LINEAR(37, sales, periods)
Same line with TREND=TREND(sales, periods, 37)
Seasonal index for a monthAverage of sales / 12-month moving average for that month
Seasonal forecast=FORECAST.LINEAR(37, deseasonalized sales, periods) * index
Free download: Get the sales forecast workbook (.xlsx). Paste 36 months of your own sales into Data!C5:C40 and the trend, seasonal index, 2026 forecast and back-test update, with two charts. No macros. FORECAST.LINEAR needs Excel 2016 or later; in older versions use FORECAST with the same arguments. Also works in Microsoft 365, Excel for the web and LibreOffice.

Step 1: Lay out the sales history

Put one row per month, oldest first, with a period number in column A (1, 2, 3…). The forecast functions work with numbers, so the period number is the x-value and sales are the y-values. Three years (36 months) is a good minimum when sales are seasonal: you need several Januaries to know what a normal January looks like. The example runs from Jan 2023 (35,670) to Dec 2025 (60,070).

Excel monthly sales history numbered by period, from 35,670 in Jan 2023 to 60,070 in Dec 2025.
Period numbers make the x-axis.

Step 2: A straight-line forecast with FORECAST.LINEAR and TREND

=FORECAST.LINEAR(A5,Data!$C$5:$C$40,Data!$A$5:$A$40)

FORECAST.LINEAR(x, known_y’s, known_x’s) fits a least-squares straight line through the history and returns the value at period x. A5 is period 37 (Jan 2026). TREND does the same thing with the arguments in a different order:

=TREND(Data!$C$5:$C$40,Data!$A$5:$A$40,A5)

Both give 57,231 for Jan 2026 and a 2026 total of 717,945, and the check cell confirms the two columns agree. In Microsoft 365, TREND can also return all 12 months at once if you give it A5:A16. The problem: the line goes up by the same amount every month, so January is forecast higher than December 2025 even though January is always the quietest month. Compare actual sales with the forecast on a combo chart and the gap is obvious.

Excel 2026 sales forecast with FORECAST.LINEAR and a TREND check column giving the same values, from 57,231 in Jan 2026 to 62,426 in Dec 2026 and a total of 717,945.
Same line, two functions.

Step 3: Remove seasonality with a 12-month moving average

To measure the seasonal pattern, first find the underlying level of sales with the seasonality averaged out. A centered 12-month moving average (CMA) does that, because every 12-month window contains each month once:

=(AVERAGE(C5:C16)+AVERAGE(C6:C17))/2

This is the CMA for July 2023 (row 11): the average of the two 12-month windows that sit around it. The first and last six months have no CMA, which is why you need a few years of data. Dividing sales by the CMA shows how far each month runs above or below the level: July 2023 was 42,740 / 44,103 = 0.969, about 3% below normal.

Excel 12-month centered moving average of sales with the ratio of sales to the moving average, for example 42,740 divided by 44,103 equals 0.969 in Jul 2023.
Sales / CMA is the seasonal effect.

Step 4: Build a seasonal index for each month

=AVERAGEIFS(Data!$F$5:$F$40,Data!$D$5:$D$40,A5)

AVERAGEIFS averages the sales / CMA ratios for each month number (blank cells are skipped). The raw indexes are then scaled so the 12 of them average exactly 1.000, so the seasonal forecast does not add or remove sales over the year:

=C5*12/SUM($C$5:$C$16)

November runs at 1.106 (about 11% above the level) and January at 0.850 (15% below). An index above 1 is a busy month, below 1 a quiet one.

Excel seasonal index by month from 0.850 in January to 1.106 in November, averaging 1.000.
12 indexes that average 1.

Step 5: Forecast the trend and put the seasonality back

Divide each month’s sales by its seasonal index to get deseasonalized sales, then fit the trend on those instead of the raw sales:

=FORECAST.LINEAR(A5,Data!$G$5:$G$40,Data!$A$5:$A$40)

The deseasonalized trend is much cleaner: R squared rises from 0.679 on raw sales to 0.986. Multiply it by each month’s index to get the seasonal forecast:

=E5*F5
Straight-line forecastSeasonal forecast
Jan 202657,23147,087
Nov 202661,95465,418
2026 total717,945690,348
Change vs 2025 (635,700)+12.9%+8.6%

The straight line overstates growth because the history ends with two strong months (November and December) that look like trend. The seasonal forecast keeps January low and November high. For growth rates like these, see percentage change in Excel.

Excel seasonal sales forecast for 2026 that multiplies a deseasonalized trend by the seasonal index, totaling 690,348, which is 8.6 percent above 2025.
Trend x index for each month.
Try it: Change Dec 2025 sales (Data!C40) from 60,070 to 66,070. The deseasonalized trend gets steeper, the 2026 seasonal forecast rises from 690,348 to 699,369 (Dec 2026 from 64,873 to 65,848) and both checks on the Forecast sheet still show Ties.

Step 6: Back-test the forecast on last year

The honest way to choose a method is to pretend it is Jan 1, 2025: build both forecasts from 2023-2024 only, then compare them with what actually happened in 2025. The Accuracy sheet does this and calculates the mean absolute percentage error (MAPE):

=AVERAGE(G5:G16)

Each error is ABS(forecast – actual) / actual. The straight line was off by 8.4% on average (22.8% in January); the seasonal forecast by 1.3%. Lower is better. Re-run the back-test whenever you add a year of data.

Excel back-test of 2025 forecasts made from 2023 and 2024 data, with an average error of 8.4 percent for the straight-line forecast and 1.3 percent for the seasonal forecast.
The seasonal method wins the back-test.

Using the forecast

  • Feed the monthly forecast into your 12-month cash flow forecast as the sales line.
  • Track actual against forecast each month in a sales report dashboard.
  • Check that the forecast covers fixed costs with a break-even analysis.
  • Adjust for things the history cannot know: price changes, new products, a lost customer.
  • FORECAST.ETS (Excel 2016 and later) can detect seasonality automatically; the manual method here shows every step and works in every version.

Common mistakes

  • Using dates as x-values with gaps or text dates; a period number is safer.
  • Forecasting seasonal sales with a straight line only.
  • Building the seasonal index from one year of data.
  • Forgetting to normalize the index, so the forecast total drifts.
  • Judging a forecast without back-testing it.

Frequently asked questions

What is the difference between FORECAST and FORECAST.LINEAR?

None in the result. FORECAST.LINEAR is the newer name (Excel 2016 and later); FORECAST still works for compatibility.

What is the difference between FORECAST.LINEAR and TREND?

They fit the same straight line. FORECAST.LINEAR returns one value for one x; TREND takes the arguments as known_y’s, known_x’s, new_x’s and can return many values at once.

How many months of data do I need for a seasonal forecast?

At least 24, better 36 or more, so each month appears several times in the seasonal index.

How do I measure forecast accuracy in Excel?

Back-test: forecast a past period you have actuals for, then calculate the mean absolute percentage error with =AVERAGE(ABS(forecast-actual)/actual) for each month.

Should I use FORECAST.ETS instead?

It is a good automatic option in Excel 2016 and later. The manual trend and seasonal index method is easier to explain and audit.

Final checklist

  • 36 months of sales, oldest first, with period numbers.
  • FORECAST.LINEAR and TREND agree.
  • Seasonal index averages 1.000.
  • Trend fitted on deseasonalized sales.
  • Back-test MAPE reviewed.
  • Forecast adjusted for known changes.
Workbook: Download the sales forecast workbook and paste in your own 36 months.

Plan the next 12 months

Find more ready-to-use Excel templates for planning, learn the formulas in the OneXcel Tutorial Hub, or chart forecast against actual with the OneXcel Dashboard Builder.