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.

Quick answer
| Goal | Formula |
|---|---|
| Straight-line forecast for period 37 | =FORECAST.LINEAR(37, sales, periods) |
| Same line with TREND | =TREND(sales, periods, 37) |
| Seasonal index for a month | Average of sales / 12-month moving average for that month |
| Seasonal forecast | =FORECAST.LINEAR(37, deseasonalized sales, periods) * index |
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).

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.

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.

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.

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 forecast | Seasonal forecast | |
|---|---|---|
| Jan 2026 | 57,231 | 47,087 |
| Nov 2026 | 61,954 | 65,418 |
| 2026 total | 717,945 | 690,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.

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.

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.
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.