Most stockouts are not bad luck. They happen because nobody noticed that a product was selling faster than the supplier could deliver. An inventory forecast answers three questions for every product: how many days of stock are left, on which day you must order, and how many units to order. A spreadsheet can answer all three if it has the right columns.
The three ideas behind the template
Daily pace
How many units you sell per day. Take the faster of the last 7 days and the last 28 days, so a product that is speeding up is not underestimated.Restock time
The real number of days between placing an order and having the goods ready to sell. Measure it, do not copy it from the supplier's email.Safety days
A few extra days of stock to cover a late delivery or a strong weekend. Three to seven days is a common starting point.With these three numbers, everything else is simple arithmetic: days left = stock / daily pace, reorder point = daily pace x (restock time + safety days), and order quantity = what you need to cover the restock time plus the next 30 days, minus what you have and what is already on the way.
The columns of the spreadsheet
Create a sheet with these headers in row 1 and one product (or one variant, such as a size) per row from row 2. Columns A to G and I to J are typed in by you; the rest are formulas. The formulas below are for row 2: copy them down to the last product.
| Column | Header | What goes in it |
|---|---|---|
| A | SKU | The product or variant code |
| B | Product | Name, with the size or option if it is a variant |
| C | In stock | Units you have now |
| D | On order | Units already ordered and not yet received |
| E | Sold 7 days | Units sold in the last 7 days |
| F | Sold 28 days | Units sold in the last 28 days |
| G | Days sold out | Days in the last 28 when it was at zero (0 if never) |
| H | Daily pace | =MAX(E2/7, F2/MAX(7, 28-G2)) |
| I | Restock days | Real days from order to goods on the shelf |
| J | Safety days | Extra days of cover, for example 4 |
| K | Days left | =IF(H2=0, "", C2/H2) |
| L | Reorder point | =ROUNDUP(H2*(I2+J2), 0) |
| M | Status | =IF(H2=0, "No sales", IF(C2+D2<=L2, "Order now", "OK")) |
| N | Runs out on | =IF(H2=0, "", TODAY()+K2) |
| O | Order by | =IF(H2=0, "", N2-I2-J2) |
| P | Order quantity | =MAX(0, ROUNDUP(H2*(I2+30), 0)-C2-D2) |
Format N and O as dates. Then add two conditional formatting rules on column K: red when K is less than I (the product will run out before new stock can arrive) and amber when K is less than I + J + 7 (order this week). Sort by column O to see first what needs ordering soonest.
Why column G matters
If a product was sold out for 10 of the last 28 days, it only sold during 18 days. Dividing by 28 would make it look slower than it is, and you would order too little again. That is why the formula divides by 28 minus the days it was sold out (never less than 7).
A worked example
A gift hamper has 120 units in stock and nothing on order. It sold 35 units in the last 7 days and 112 in the last 28, with no days sold out. The supplier really takes 10 days and you want 4 safety days.
| Column | Calculation | Result |
|---|---|---|
| Daily pace (H) | MAX(35/7, 112/28) = MAX(5, 4) | 5 units a day |
| Days left (K) | 120 / 5 | 24 days |
| Reorder point (L) | 5 x (10 + 4) | 70 units |
| Status (M) | 120 + 0 is above 70 | OK |
| Order by (O) | today + 24 - 10 - 4 | in 10 days |
| Order quantity (P) on that day | 5 x (10 + 30) - 70 | 130 units |
Notice the daily pace. The 28-day average says 4 a day, but the last week says 5. Using 4 would tell you the stock lasts 30 days instead of 24, and you would order almost a week too late. Taking the faster of the two is the single most useful rule in this template.
How much inventory should I keep on hand?
Enough to cover the restock time plus your safety days, and no more than you can sell in a reasonable time. The order quantity in column P covers the restock time plus 30 days of sales. If cash is tight or a product sells slowly, use 14 days instead of 30. If the supplier has a minimum order, round up to it.
If you prefer the classic safety stock formula, it is: (highest daily sales x longest restock time) - (average daily sales x average restock time). With a best day of 8 units, a longest restock of 14 days, an average of 5 a day and an average restock of 10 days, that is 112 - 50 = 62 units. It is more cautious than safety days, and better for products where running out is very costly.
How to keep it up to date
- Once a week, export a sales by product report from Shopify or WooCommerce for the last 7 days and for the last 28 days, and paste the units into columns E and F.
- Update column C with your current stock and column D with what is on the way.
- Each time a delivery arrives, write down how many days it really took and update column I.
- Before Ramadan, Eid, White Friday or any big campaign, do it twice a week.
When the spreadsheet stops being enough
A template like this works well for a few dozen products. It starts to fail when you have many variants, when nobody has time to update it every week, or when sales change between Monday and Friday. It also only knows what you paste into it: it cannot see that a product was sold out for five days or that your supplier has been slower each time.
How Radar does it for you
Radar by Yoni reads your Shopify or WooCommerce stock every night and does the same calculation for every product that tracks stock, without a spreadsheet. It uses the faster of the 7-day and 28-day pace, and once it has a few weeks of daily stock history it leaves out the days a product was sold out. It learns your real restock time from past deliveries, counts the stock already on the way and suggests how many units to order to cover the restock time plus 30 days.

Each warning also shows the sales at risk if you wait. It also looks at your strongest days of the week and warns you when your best sellers will run out before they end.

Radar never changes your stock or places orders. It tells you what to reorder and how much, and you decide.


