Demand Forecasting with AI in Excel or Sheets: Step by Step
Build a demand forecast in Excel or Google Sheets with AI: clean the data, set a baseline, use FORECAST.ETS, check accuracy, and set reorder numbers.
For Operations, Managers and Procurement

How do you do demand forecasting with AI in Excel or Sheets?
Put your sales or usage history in a clean table, one row per period. Ask AI to check the data and build a baseline forecast, then use Excel's built-in forecasting (FORECAST.ETS or the Forecast Sheet button) or Sheets' TREND and FORECAST functions. Hold back your last few periods and compare the forecast to what actually happened. Keep the method with the smallest error. AI speeds up each step, but you decide what goes into the plan.
This guide walks through that process with real formulas and prompts you can paste. It works for a planner forecasting SKUs, a procurement lead sizing next quarter's orders, or a manager estimating ticket volume or headcount needs.
TL;DR
- A forecast is a measured guess, not a prediction. Your job is to make it less wrong than the simple alternative, and to know by how much.
- Start with a naive baseline (same month last year, or a moving average). If a fancier method can't beat it, don't use it.
- Excel's FORECAST.ETS handles trend and seasonality without any code. Google Sheets has no equivalent button, so you either deseasonalize by hand or have AI build the pattern for you.
- Use AI for the tedious parts: cleaning data, writing formulas, explaining errors, drafting the summary. Do not use it to invent numbers or to skip the accuracy check.
- Test on data the model hasn't seen. Hide the last 6 to 12 periods, forecast them, and measure the miss with WAPE or MAPE.
- Turn the forecast into an action, such as a reorder point, a safety stock level or a staffing number, or it stays a chart nobody uses.
What data do you need for a demand forecast?
You need a history of demand, one row per time period, with no gaps. For most teams that means monthly or weekly units sold, shipped, ordered or requested.
A good minimum is two full seasonal cycles. If demand has a yearly pattern (holiday peaks, summer slowdowns), that means 24 months of history. With less, a method can't separate a seasonal pattern from a one-off bump.
Set the sheet up like this:
| Month | Units | Notes |
|---|---|---|
| 2022-01-01 | 1,240 | |
| 2022-02-01 | 1,180 | |
| 2022-03-01 | 1,410 | Promo |
| ... | ... |
Rules that save you trouble later:
- Use real dates, not text like "Jan 22". Excel's forecasting functions need a consistent date step (every month, every week).
- One series per sheet or block. Forecast one product or product family at a time.
- Use demand, not sales, when you can. If you were out of stock for three weeks, sales understate what customers wanted. Flag those periods in the Notes column.
- Note promotions, price changes and one-offs. A model can't know why March spiked unless you do.
How do you clean your data with AI before forecasting?
Dirty data is the most common reason forecasts fail, and it is where AI saves the most time. Use it to find problems, then fix them yourself so you know what changed.
Paste a sample (not your whole confidential dataset) into an AI assistant, or use the built-in assistant in your spreadsheet if your company has it enabled. Check your company's policy first. Many large employers do not allow customer, pricing or supplier data in public AI tools. If that's you, use the approved tool, or describe the structure of the data and ask for formulas instead of pasting the data.
Prompt to paste:
I'm building a monthly demand forecast in a spreadsheet. Below is a sample of
my data: Month, Units, Notes. Review it and tell me:
1. Missing months or duplicate dates
2. Values that look like outliers (explain why, don't delete them)
3. Periods where the Notes suggest demand was distorted (stockouts, promos)
4. The Excel formulas I can use to find these problems myself in the full sheet
Don't change any numbers. List problems only.
[paste 24-36 rows]
What to check in the answer:
- Does every flagged outlier actually exist in your data? AI sometimes points at rows that look fine.
- Are the formulas valid? Test each on a few rows before trusting it.
- Decide for each outlier whether it's a real event (keep it, and note it) or an error (fix it from the source system).
A common fix for a stockout month is to estimate what demand would have been, for example by using the average of the month before and after, and mark that cell clearly so you remember it's an estimate.
How do you set a baseline forecast first?
Before any clever method, build the simplest forecast possible. This is your yardstick.
Two baselines work for most business data:
- Seasonal naive: forecast next January as last January. In Excel, if your data starts in row 2 and you're forecasting a month 12 rows down, the formula is just a reference to the cell 12 rows above. This is hard to beat for stable, seasonal products.
- Moving average: forecast the next period as the average of the last 3 or 6 periods. In Excel:
=AVERAGE(B35:B37). This is better for flat demand with no season.
Everything that follows should beat one of these. If your sophisticated forecast has a larger error than "same as last year," the sophisticated forecast is the problem.
How do you forecast in Excel with FORECAST.ETS?
Excel has two built-in routes, and neither needs a plugin.
Route 1: the Forecast Sheet button.
- Select your date column and your units column.
- Go to Data, then Forecast Sheet.
- Choose a line or column chart, set the forecast end date, and open Options.
- Set seasonality. Leave it on automatic, or enter 12 for monthly data with a yearly pattern, or 52 for weekly.
- Keep the confidence interval on (95% is the default). Create the sheet.
Excel builds a new sheet with your history, the forecast, and upper and lower bounds. It uses an exponential smoothing method (ETS) that picks up trend and seasonality.
Route 2: the formula. This is better when you want the numbers inside your own model:
=FORECAST.ETS(A38, $B$2:$B$37, $A$2:$A$37, 12)
Here A38 is the date you want to forecast, B2:B37 is the history, A2:A37 the dates, and 12 the seasonal cycle length. To get the width of the confidence range for the same date, use:
=FORECAST.ETS.CONFINT(A38, $B$2:$B$37, $A$2:$A$37, 0.95, 12)
The forecast plus or minus that number is the range you can plan around. Present the range, not just the midpoint. A forecast of 1,300 units with a range of 1,100 to 1,500 tells a buyer something a lone "1,300" doesn't.
Where AI helps here: if your version of Excel has Copilot or a similar assistant, you can ask it to "add a forecast for the next 12 months using seasonality" and then look at the formula it wrote. If it generates a formula, read it. Confirm it references the right ranges, uses the right seasonal length, and doesn't quietly use a linear trend where you wanted seasonality. Availability depends on your license and your company's settings, so don't assume you have it.
How do you forecast in Google Sheets with AI?
Google Sheets has FORECAST, FORECAST.LINEAR, TREND and GROWTH, which fit straight-line or exponential trends. It does not have a one-click seasonal forecast like Excel's Forecast Sheet. For data with a seasonal pattern, use a manual method that AI can set up quickly:
- Calculate seasonal indexes. For each month, divide its average units across all years by the overall average. A January index of 0.85 means January runs 15% below average.
- Deseasonalize. Divide each actual by its month's index.
- Fit the trend on the deseasonalized numbers:
=TREND(D2:D37, A2:A37, A38:A49). - Reseasonalize. Multiply each trend value by its month's index.
That is a classic, respectable method, and it's easy to audit because every step is visible.
Prompt to paste (into Gemini in Sheets, or any assistant):
My Google Sheet has dates in column A (monthly, 36 rows) and units in column B.
Build a seasonal forecast for the next 12 months using this method:
- seasonal index per calendar month (average of that month / overall average)
- deseasonalized series = units / index
- linear trend on the deseasonalized series using TREND()
- final forecast = trend value x seasonal index
Give me the exact formulas for each helper column, with cell references, and
tell me which columns to create. Don't hardcode any numbers.
Then check: do the seasonal indexes average to about 1.0? Does the forecast line look like a continuation of the history, with similar peaks and dips? If the forecast jumps oddly, trace the first wrong cell.
How do you know if the forecast is any good?
Backtest it. Pretend it's twelve months ago, forecast the last 12 months using only the older data, and compare to what really happened.
- Keep the last 6 to 12 periods out of the history range.
- Forecast those periods with your method and with your baseline.
- Put actual and forecast side by side.
- Measure the error.
Two measures cover most needs:
| Measure | Formula idea | Use it when |
|---|---|---|
| WAPE (weighted absolute percentage error) | Sum of absolute errors divided by sum of actuals | You have a mix of big and small periods or items. Hard to distort. |
| MAPE (mean absolute percentage error) | Average of each period's error divided by its actual | Demand is steady and never near zero. |
In Excel, with actuals in B and forecasts in C for rows 2 to 13:
WAPE: =SUMPRODUCT(ABS(B2:B13-C2:C13))/SUM(B2:B13)
A WAPE of 0.12 means you were off by about 12% of volume. There is no universal "good" number. It depends on how volatile your product is. What matters is whether your method beats the baseline on the same test. If WAPE for FORECAST.ETS is 0.12 and seasonal naive is 0.18, use ETS. If they're equal, use the simpler one.
Prompt for reviewing results:
Here is my backtest: month, actual, ETS forecast, seasonal naive forecast.
Calculate WAPE for both. Show the months with the largest errors and suggest
business reasons I should check (promotions, stockouts, price changes,
pack-size changes). Don't guess causes as facts; give me a checklist of
questions to ask sales and supply planning.
AI is good at spotting that the three worst misses all fell in promotional months. It is not good at knowing why. Ask the people who ran the promotion.
What can go wrong with AI forecasting?
- Confident nonsense. An AI assistant will happily produce a tidy forecast from 8 data points. It won't tell you the result is unreliable unless you ask. Always ask: "How many data points do I need, and is this enough?"
- Made-up numbers. If you ask a chat assistant to "forecast demand" from data pasted into the chat, it may estimate in its head and get arithmetic wrong. Make it write formulas that run in the sheet. Numbers produced by formulas can be audited. Numbers typed by a chat model can't.
- Stockouts hidden in the history. The model learns that demand dropped when you simply ran out.
- New products and big changes. No history means no statistical forecast. Use a similar product's launch curve and label it a judgment call.
- Intermittent demand. Spare parts that sell twice a quarter break ETS and percentage-error measures. Use a longer time bucket, or a reorder rule based on usage rate and lead time.
- Forecasting at the wrong level. SKU-level forecasts are noisy. Forecast the product family, then split by recent share.
- Data you shouldn't share. Follow your company's AI policy. Anonymize product names or use approved tools.
How do you turn the forecast into an order or staffing decision?
A forecast matters when it changes a number someone acts on. For inventory, the two most common outputs are safety stock and reorder point.
- Safety stock ≈ z × σ × √L, where σ is the standard deviation of demand per period (use
=STDEV.Son your forecast errors, which is better than raw demand), L is lead time in periods, and z reflects your service level (about 1.65 for 95%). - Reorder point = average demand during lead time + safety stock.
Example: a product forecast at 1,300 units per month, with a 2-month lead time and a monthly forecast error standard deviation of 150 units. Lead-time demand is 2,600. Safety stock at 95% is 1.65 × 150 × √2, which is about 350. Reorder point is about 2,950.
Ask AI to put this into your sheet:
Add columns to my forecast sheet that calculate safety stock and reorder point.
Inputs (in labeled cells): lead time in months, service level z-value, current
on-hand and on-order. Use the standard deviation of my backtest errors in
column E. Output a "units to order now" column. Show the formulas.
Then sanity check with a buyer. If the sheet says order 4,000 units and the buyer says that's three times the usual, find out who is right before the PO goes out.
Can I build a reusable forecasting tool instead of a spreadsheet?
Once a forecast works, the pain moves to maintenance. The file gets copied, someone overwrites a formula, and nobody remembers which tab is current.
Remy, a product agent that builds full-stack apps from a plain-English description, is one way to get out of that. You could describe a small internal tool: upload a monthly demand file, show the forecast and the range, record the backtest error, and keep a log of the orders approved. Remy builds it with a database and sign-in, and deploys it to a live URL you own. It's worth considering when several people depend on the same forecast and the spreadsheet has become fragile. You can start from Remy with the same worked example you just built.
Frequently Asked Questions
Can Excel forecast demand without any add-ins?
Yes. The Forecast Sheet button (Data tab) and the FORECAST.ETS function are built in and handle trend and seasonality. Older Excel versions may lack some of these, so check what your installation supports.
How much history do I need to forecast demand?
Two full seasonal cycles is a practical minimum, so 24 months for yearly seasonality. With less, use a simple moving average or a linear trend, and widen your safety margin. A forecast from a handful of points is a rough guide at best.
Is AI forecasting more accurate than a normal Excel forecast?
Not automatically. For many business series, simple methods such as seasonal naive or ETS are hard to beat. AI mostly makes the work faster by cleaning data, writing formulas and explaining misses. Test any method against your baseline on held-out data, and keep the one with the lower error.
Can I just paste my sales data into ChatGPT and ask for a forecast?
You can, but it's a weak approach. The assistant may do arithmetic in its head and get it wrong, and you can't audit the result. Ask it to write spreadsheet formulas instead, run them in your file, and check your company's policy before pasting any internal data.
How often should I update the forecast?
Refresh it every time new actuals arrive, usually monthly or weekly. Recalculate your error measure at the same time. If error rises for several periods in a row, something changed in the market, the product or your data, and the method needs another look.
How we source, write, and correct our articles. Editorial standards
Related articles

Procurement Spend Analysis: How to Do It with AI

Why Are Phone and Laptop Prices Rising? AI Memory Shortage

What percentage of business software goes unused?
