Radar by Yoni
Guide

An inventory forecast you can build today.

You do not need special software to know when a product will run out. One sheet with sixteen columns tells you how many days of stock you have left, when to order and how much. Here is how to build it, formula by formula, and when it is time to let it go.

Yoni Gonzalez3 October 20267 min read
Real screen of the demo store. Sample data.

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.

ColumnHeaderWhat goes in it
ASKUThe product or variant code
BProductName, with the size or option if it is a variant
CIn stockUnits you have now
DOn orderUnits already ordered and not yet received
ESold 7 daysUnits sold in the last 7 days
FSold 28 daysUnits sold in the last 28 days
GDays sold outDays in the last 28 when it was at zero (0 if never)
HDaily pace=MAX(E2/7, F2/MAX(7, 28-G2))
IRestock daysReal days from order to goods on the shelf
JSafety daysExtra days of cover, for example 4
KDays left=IF(H2=0, "", C2/H2)
LReorder point=ROUNDUP(H2*(I2+J2), 0)
MStatus=IF(H2=0, "No sales", IF(C2+D2<=L2, "Order now", "OK"))
NRuns out on=IF(H2=0, "", TODAY()+K2)
OOrder by=IF(H2=0, "", N2-I2-J2)
POrder 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.

ColumnCalculationResult
Daily pace (H)MAX(35/7, 112/28) = MAX(5, 4)5 units a day
Days left (K)120 / 524 days
Reorder point (L)5 x (10 + 4)70 units
Status (M)120 + 0 is above 70OK
Order by (O)today + 24 - 10 - 4in 10 days
Order quantity (P) on that day5 x (10 + 30) - 70130 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

  1. 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.
  2. Update column C with your current stock and column D with what is on the way.
  3. Each time a delivery arrives, write down how many days it really took and update column I.
  4. 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.

A product that will sell out in about 16 days, with a 10-day restock: reorder about 21 units now. Real screen of the demo store. Sample data.
A product that will sell out in about 16 days, with a 10-day restock: reorder about 21 units now

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.

Sunday and Monday are the strongest days: three best sellers will run out before they end. Real screen of the demo store. Sample data.
Sunday and Monday are the strongest days: three 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.

How Radar helps

Stock about to run out

Radar works out how fast each product sells and tells you which one runs out first, on which day and how much to order.

Questions, answered

How do I forecast inventory in Excel?

For each product, calculate the daily pace (the faster of the last 7 and 28 days), divide stock by that pace to get days left, and compare it with your restock time plus safety days. The columns and formulas above do all of this.

How much inventory should I have based on sales?

Enough to cover your restock time plus a few safety days at your current daily pace. At 5 units a day, 10 days of restock and 4 safety days, you should reorder when you reach 70 units.

How do I calculate reorder point with safety stock?

Reorder point = daily pace x restock days + safety stock. If you express safety stock in days, it becomes daily pace x (restock days + safety days).

Does Shopify have inventory forecasting?

Shopify shows stock levels and sales reports, but it does not tell you when each product will run out or how much to reorder. You can build it in a spreadsheet, or let Radar calculate it every night.

Tomorrow morning, know what to do.

Fifteen days inside the demo store, in English or Spanish, in US dollars. No card, no commitment.