Seasonal sales forecasting in Excel, scored with MAPE
Five-step seasonal decomposition in Excel scores a 6.6 per cent holdout MAPE, edging out a simple trailing-growth rule (6.7 per cent) by 0.1 percentage points. Here are the exact worksheet formulas, the out-of-sample benchmark check and why safety stock still matters.

Suppose a cooling-equipment distributor has to lock in 12 months of factory purchase orders for a line whose May volume runs roughly 74 per cent above January while annual sales climb steadily. Ordering too heavily traps working capital in autumn clearance stock; ordering too lightly leaves shelves empty mid-summer. The five-step procedure in Seasonal-index and trend forecasting lays out that trade-off cleanly in a single Excel worksheet (unless an external shock breaks historical patterns altogether, as in the Starbucks during Covid case).
When is a five-step Excel seasonal forecast worth building over a simple growth rule?
Building a full decomposition sheet pays off mainly when you need a multi-year trend line so a one-off spike in last year's sales does not distort next year's baseline. Across the 12 held-back test months below, mean absolute percentage error MAPE for the five-step worksheet hits 6.6 per cent, halving the error of copying last year's month while beating a trailing-growth rule by just 0.1 percentage points (Hyndman and Athanasopoulos, 2021):
| Forecasting method | Holdout MAPE (12 months) |
|---|---|
| Same month last year (Seasonal naïve) | 13.3% |
| Same month last year × (1 + 11.2% year-3 growth) | 6.7% |
| Five-step procedure (indices + linear trend) | 6.6% |
Between 6.6 per cent and 6.7 per cent, I still ask planning teams to build the five-step sheet for core product lines because a one-line growth multiplier carries every random blip from year 3 straight into year 4. Separating multi-year slope from monthly seasonality gives buyers a calmer anchor.
Three practical checks belong alongside any MAPE figure before purchase orders are signed:
- Never judge accuracy on training rows: Scoring the sheet on the 36 months used to fit its parameters drops MAPE to 2.6 per cent, 2.5 times lower than true holdout error (6.6 per cent). Hyndman and Athanasopoulos (2021, section 5.8) warn explicitly that small training residuals never guarantee small forecast errors (Hyndman and Athanasopoulos, 2021).
- Respect the irreducible noise floor: Plugging the exact generative equation
200 + 3tand true seasonal weights into year 4 still yields a 4.4 per cent MAPE from random demand variation. Demanding near-zero error from planners only invites number-massaging. - Weigh asymmetric error cost: MAPE treats 10 per cent under-forecasting and 10 per cent over-forecasting as roughly equal misses. In seasonal wholesale trade, stocking out in May forfeits full gross margin and risks losing trade accounts, costing far more than carrying leftover units into autumn.
Setting up the 48-month dataset with a clean 12-month holdout
To test accuracy honestly, our 48-month illustrative series of unit sales is split into 36 training months (C2:C37) to estimate parameters and 12 held-back months (J38:J49) reserved strictly for out-of-sample scoring. Holding back 25 per cent follows Hyndman and Athanasopoulos (2021, section 5.8), who advise matching the test window to the full forecast horizon (Hyndman and Athanasopoulos, 2021).
The 48 observations come from a known generative equation: a linear base of 200 + 3t (where t is the month counter), multiplied by fixed monthly seasonal weights, perturbed by random normal noise with a 4 per cent standard deviation and rounded to whole units. Knowing the exact parameters lets us verify how closely Excel recovers the underlying signal:
Months 1–12 (year 1): 173 172 230 280 281 262 221 198 213 200 204 188
Months 13–24 (year 2): 195 204 267 304 346 306 260 232 252 227 238 235
Months 25–36 (year 3): 220 223 304 335 404 342 284 293 251 262 252 240
Months 37–48 (year 4): 237 283 373 411 451 388 336 306 281 267 312 300
Place the sequential month counter (1 to 48) in A2:A49, the calendar month (1 to 12) in B2:B49, training sales in C2:C37 and held-back year-4 actuals in J38:J49.
Five Excel formulas to isolate seasonal indices, fit trend and score MAPE
Every calculation uses standard built-in worksheet functions available in any version of Excel (Hyndman and Athanasopoulos, 2021, sections 3.4, 5.7).
Step 1: Isolating seasonal indices with a 2×12 centred moving average
Divide each training month's volume by a 2×12 centred moving average, average those ratios by calendar month and normalise the twelve figures so their sum equals 12 (Hyndman and Athanasopoulos, 2021, section 3.4). Because 12 is an even cycle length, averaging adjacent 12-month windows centres the smoothed baseline squarely on each individual month:
D8: =(C2/2+SUM(C3:C13)+C14/2)/12 fill down to D31
E8: =C8/D8 fill down to E31
N2: =AVERAGEIFS($E$2:$E$37,$B$2:$B$37,M2,$E$2:$E$37,">0") M2:M13 hold values 1…12
O2: =N2*12/SUM($N$2:$N$13) fill down to O13
F2: =INDEX($O$2:$O$13,B2) fill down to F49
Losing six months at each end leaves 24 smoothed cells (D8:D31), giving each calendar month just two raw ratios in the average. May peaks 41 per cent above the annual average and January troughs 19 per cent below, while April drifts furthest from its generative weight (1.21 versus 1.30) because two cycles cannot iron out 4 per cent noise:
| Month | Estimated index | Generative index |
|---|---|---|
| 1 | 0.81 | 0.80 |
| 2 | 0.82 | 0.85 |
| 3 | 1.09 | 1.10 |
| 4 | 1.21 | 1.30 |
| 5 | 1.41 | 1.35 |
| 6 | 1.21 | 1.20 |
| 7 | 1.01 | 1.00 |
| 8 | 0.90 | 0.95 |
| 9 | 0.96 | 0.90 |
| 10 | 0.87 | 0.85 |
| 11 | 0.89 | 0.90 |
| 12 | 0.83 | 0.80 |
Multiplicative scaling matches the data because the peak-to-trough spread expands from 109 units in year 1 to 184 units in year 3.
Steps 2 and 3: Deseasonalising the series and fitting the linear trend
Dividing monthly training sales in column C by the seasonal index in column F strips out seasonal waves and exposes underlying growth. Fitting ordinary least squares across G2:G37 with INTERCEPT and SLOPE captures that straight-line trajectory (Hyndman and Athanasopoulos, 2021, section 5.7):
G2: =C2/F2 fill down to G37
a: =INTERCEPT($G$2:$G$37,$A$2:$A$37) returns 204.16
b: =SLOPE($G$2:$G$37,$A$2:$A$37) returns 2.653
The estimated trend 204.16 + 2.653 × t indicates baseline demand growing by roughly 2.65 units a month, slightly flatter than the true slope of 3.0 owing to finite-sample noise and index estimation error.
Steps 4 and 5: Projecting year 4 and scoring out-of-sample MAPE
Projecting the linear trend across months 37 to 48 and multiplying by each month's seasonal index produces the year-4 forecast in column I, while =AVERAGE(K38:K49) returns the 6.6 per cent holdout MAPE:
I38: =(INTERCEPT($G$2:$G$37,$A$2:$A$37)+SLOPE($G$2:$G$37,$A$2:$A$37)*A38)*F38 fill down to I49
K38: =ABS(J38-I38)/J38 fill down to K49
| Month (year 4) | Forecast | Actual | Absolute percentage error |
|---|---|---|---|
| 1 | 245 | 237 | 3.4% |
| 2 | 251 | 283 | 11.2% |
| 3 | 335 | 373 | 10.2% |
| 4 | 375 | 411 | 8.7% |
| 5 | 440 | 451 | 2.5% |
| 6 | 381 | 388 | 1.9% |
| 7 | 322 | 336 | 4.3% |
| 8 | 287 | 306 | 6.1% |
| 9 | 310 | 281 | 10.3% |
| 10 | 284 | 267 | 6.4% |
| 11 | 292 | 312 | 6.5% |
| 12 | 276 | 300 | 8.0% |
Total projected demand reaches 3,798 units against 3,945 actual units sold (3.7 per cent low), under-shooting real demand in 9 of the 12 months including seven straight months from February through August. Seeing that run of summer shortfalls, my rule for purchasing teams is never to release supplier orders off bare point projections without adding explicit safety stock.
Four situations where classical Excel seasonal decomposition breaks down
Locking in static monthly weights and extrapolating a straight line fails under four common commercial conditions. Histories shorter than 24 months cannot support a 2×12 moving average at all, and even on a 36-month sheet a single aggressive clearance sale in year 2 will warp that month's index for years afterwards.
Seasonal curves also shift shape as markets evolve. Hyndman and Athanasopoulos (2021) point to electricity grids whose annual peak migrated from winter heating to summer air conditioning as cooling adoption spread (Hyndman and Athanasopoulos, 2021). Static averages across all historical years lag behind structural shifts like that.
Long horizons and irreversible commitments expose the remaining limits. No product category grows linearly forever once distribution saturates, so teams should re-estimate parameters quarterly via a Rolling forecast cycle. And when signing long-lead container orders or tooling commitments, pair Choosing a forecasting method with probability ranges as set out in One number or several scenarios?.
Why forecasting textbooks favour STL and ETS over classical decomposition and raw MAPE
Classical multiplicative decomposition dates back to the 1920s and is documented in Hyndman and Athanasopoulos (2021, sections 3.4 and 5.7) (Hyndman and Athanasopoulos, 2021). Although finance and operations teams still build it in spreadsheets because every cell formula is transparent, the textbook authors explicitly discourage classical decomposition for demanding production systems: it cannot adapt to evolving seasonal shapes and gets pulled off course by isolated promotional spikes.
Dedicated forecasting packages rely on STL (Loess-based seasonal-trend decomposition) and ETS state-space models, which allow seasonal weights to drift smoothly over time and handle outliers far more gracefully. MAPE carries mathematical flaws of its own, breaking on zero-sale months, spiking on tiny denominators and penalising positive errors harder than negative ones (Hyndman and Athanasopoulos, 2021).
For SMEs working without specialist planning software, building this five-step Excel worksheet remains a sound operational habit because it separates organic baseline growth from seasonal waves. Just verify that it beats a growth-adjusted seasonal baseline on held-back data and back every order run with a calculated safety buffer.
Quick questions
How many months of sales history are needed to calculate seasonal indices?
A 2×12 centred moving average requires at least 24 months of history, which leaves only one raw ratio per calendar month and exposes indices to random noise. With 36 months, each month averages just two ratios and still drifts visibly from true underlying weights. Reliable operational indices generally require 48 to 60 unbroken months of stable seasonal trading (Hyndman and Athanasopoulos, 2021).
When should a planner choose a multiplicative model over an additive one?
Hyndman and Athanasopoulos (2021) recommend an additive model when the unit spread between peak and quiet months stays roughly constant as overall volume rises, and a multiplicative model when seasonal swings widen in proportion to total sales (Hyndman and Athanasopoulos, 2021). In the benchmark series below, the annual peak-to-trough gap widens from 109 units in year 1 to 184 units in year 3, fitting multiplicative scaling.
Where does MAPE fail as an inventory forecast metric?
MAPE divides by zero whenever a month records no sales and explodes in quiet periods with single-digit unit volume. Because actual demand sits in the denominator, it also penalises over-forecasts more heavily than under-forecasts of identical unit size (Hyndman and Athanasopoulos, 2021). For intermittent or slow-moving lines, mean absolute error (MAE) measured directly in units is safer.
Lunar holidays such as Tet shift calendar months each year. Do fixed monthly indices still hold?
Movable holidays jump between January and February across years, blurring fixed monthly weights. Hyndman and Athanasopoulos (2021) advise adjusting for calendar trading days before decomposing (Hyndman and Athanasopoulos, 2021). Where pre-holiday buying dominates annual volume, planners should strip the peak pre-Tet weeks out and model them as a separate event window.
References
Listed A–Z by author surname, Harvard style. A source with a DOI links to https://doi.org/…; one without links to its page or says plainly that it has no DOI.
- Hyndman, R.J. and Athanasopoulos, G. (2021) Forecasting: Principles and Practice, 3rd edn.No DOIotexts.comCited in 2 articles



Was this article useful?
No ratings yet.
Comments (0)
No comments yet. Be the first.