How to Forecast Sales Without Fancy Software
This semester I’m part of a five-person research team forecasting Walmart’s weekly sales. The public dataset has 421,570 weekly records across 3,331 store-and-department combinations, and we’re comparing seven methods, from a simple seasonal baseline to a neural network.
Before we fitted a single model, we spent days just cleaning the data. We found 1,358 weeks with zero or negative sales. We found that markdown data only starts in November 2011. And we found that the dataset’s holiday flag misses the biggest shopping week of the year. Any of those, left alone, would have quietly bent our forecasts.
I mention this because most people asked for a sales forecast don’t have a research team or a neural network, and they don’t need one. They have a few years of monthly numbers in a spreadsheet. For most steady businesses, a simple, transparent method gets you a forecast that’s hard to beat, and you can explain every number in it. The lessons from the big project still apply: look at your data first, and always compare against something simple.
The method is called classical decomposition: split your history into a trend and a seasonal pattern, project the trend forward, and put the seasonality back.
Step 1: look at the data first
Before any formula, chart your history as a line. You’re looking for three things:
- A trend. Is the line drifting up or down over the years?
- A repeating pattern. Do the same months peak every year, like a summer high or a holiday spike? That’s seasonality.
- Breaks and errors. Did something change the business, such as a price increase, a lost client or a new product? Are there impossible values, like negative sales? Fix the errors, and consider forecasting only from after a genuine break.
Ten minutes with a chart prevents most forecasting mistakes. It’s the step everyone wants to skip, and the one that saved our Walmart project from building on bad data.
Step 2: fit the trend
The trend is the straight line that best fits your data over time. In a spreadsheet, number your periods 1, 2, 3 and so on, then use =SLOPE(sales, periods) and =INTERCEPT(sales, periods). The slope is the average change per period. A slope of 1.8 with monthly data means sales grow by about 1.8 units a month.
A trend line alone is a fine forecast for data without a seasonal pattern. For most retail and consumer businesses, though, seasonality matters more than the trend.
Step 3: measure the seasonality
For each month, divide actual sales by the trend value for that month. A ratio of 1.2 means sales ran 20% above trend; 0.85 means 15% below. Then average those ratios across years for each calendar month: every July’s ratio goes into a July index, every November’s into a November index, and so on.
You end up with twelve seasonal indices, one per month, that average out to 1. A July index of 1.25 means July typically runs 25% above trend.
One refinement matters more than it looks. The trend itself is slightly distorted by seasonality, because a history that ends on a peak tilts the line upward. Better tools divide sales by the seasonal indices, refit the trend on that adjusted data, and repeat until the numbers settle.
Step 4: forecast and recombine
For each future month, extend the trend line (intercept + slope × period number) and multiply by that month’s seasonal index. That’s your forecast.
Doing steps 2 to 4 by hand takes a while, so I built a free sales forecast calculator that does all of it, including the refitting. Paste your monthly sales, set the season length to 12, and you get the trend, a forecast table, a chart and an error estimate. You can download the forecast as CSV and drop it into your planning spreadsheet. Nothing you paste leaves your browser.
The Excel shortcut: Forecast Sheet
If you’d rather stay in Excel, its built-in Forecast Sheet (Data → Forecast Sheet) and the FORECAST.ETS function use exponential smoothing and can detect seasonality automatically. For monthly data with a yearly cycle, the seasonality is 12. Excel needs at least two full cycles of history to find a pattern; without them, it falls back to a straight trend. Forecast Sheet is quick and usually sensible, but it’s harder to explain to a manager than a trend and twelve indices, so I like to run both and compare.
Step 5: check how wrong it’s likely to be
Every forecast is wrong. The question is by how much. The standard measure is MAPE (mean absolute percentage error): how far, on average, the model’s fitted values sit from your actual history, as a percentage.
- Under 10%: a good fit for monthly business data.
- 10% to 25%: usable, with sensible caution.
- Over 25%: the method isn’t capturing what drives your sales. Treat the forecast as a rough guide.
Also look at the chart. If the fitted line misses obvious turning points in your history, it will miss them in the future too. On a sample three-year series with a summer peak, the seasonal model fits with about a 3% error, while a plain trend line fits with about 10%. That gap is the value of accounting for seasonality.
Step 6: beat the naive baseline
This is the lesson I’d most like every analyst to learn. In a personal project, I built a regression to forecast a stock’s next-day opening price. It scored an R² of 0.989, which looks spectacular. Then I scored the laziest possible forecast, “tomorrow equals today”, the same way. It scored 0.975. My model was barely better than doing nothing.
Sales forecasts fall into the same trap. Before you trust any method, compare it with a naive forecast: next month equals this month, or, for seasonal data, this July equals last July. If your forecast doesn’t clearly beat that, it isn’t adding anything. That’s exactly why our Walmart project includes a seasonal naive model as the baseline every other method has to beat.
Step 7: add what the history doesn’t know
A statistical forecast is a baseline built from the past. It doesn’t know about next year’s price increase, the product launching in March or the big customer who just left. The last step is human: adjust specific months for what you know, and write down why. That record matters when you compare the forecast with actual results later.
How much history do you need?
For a trend-only forecast, a year of data is a sensible minimum. For monthly data with a yearly pattern, you need at least two full years so each seasonal index averages more than one data point, and three or more years is better. Don’t forecast much further ahead than one season length. Beyond that, you’re mostly extending a straight line into an uncertain future.
When to use something more advanced
- Growth that’s speeding up or slowing down. A straight-line trend can’t curve, so fast-growing products get under-forecast and maturing ones over-forecast. For long-run growth, the CAGR calculator gives you a steady percentage rate instead.
- Lots of zero sales. Spare parts and slow-moving stock need specialised methods.
- Shocks and promotions. Holidays that move, price changes and one-off events are where simple methods struggle most. That question, which methods stay accurate when conditions change, is exactly what our Walmart research is testing.
- Big decisions. If inventory or budgets worth real money depend on the forecast, compare this baseline with exponential smoothing or ARIMA in Excel, R or Python.
Summary
- Chart the history. Look for trend, seasonality, breaks and errors.
- Fit a trend line.
- Measure seasonal indices.
- Forecast = trend × seasonal index.
- Check the error (MAPE) and the chart.
- Make sure you beat the naive forecast.
- Adjust for what you know, and write it down.
Questions people ask
What’s the easiest way to forecast sales in Excel?
Select your dates and sales, then use Data → Forecast Sheet. For a forecast you can explain line by line, use the trend and seasonal index method above.
How accurate should a sales forecast be?
For monthly data, a MAPE under 10% is good. More important than any benchmark is beating a naive forecast on your own data.
How many years of data do I need for seasonality?
At least two full years, ideally three or more.
Reply by Instagram DM, email or LinkedIn.