A route driver refills each slot back to its par. Subtract what is left from the par level — floored at zero — and the pick list writes itself.
A slot with a par of 24 and 9 left needs 15 units. MAX keeps an overstocked slot at 0 rather than a negative.
The example
Three slots with their par level and current count.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Par | Current | Restock |
| 2 | Cola | 24 | 9 | 15 |
| 3 | Water | 36 | 20 | 16 |
| 4 | Chips | 18 | 18 | 0 |
The formula
Subtract, then floor at zero:
How it works
The refill is the gap back up to par:
B2-C2is how far below par the slot has dropped.MAX(…,0)floors it at zero so a full or overstocked slot shows 0, not a negative number.- The result is exactly how many to load on this stop.
Sum the Restock column to size the pick for the whole machine, or the whole route.
Try it: interactive demo
Enter the par level and the current count.
Variations
Round to case packs
Round the refill up to whole cases of a given pack size.
Pitfalls & errors
Without MAX, an overstocked slot returns a negative — meaningless on a pick list. The floor at 0 keeps it clean.
Count current stock at the moment of restock; stale counts under- or over-fill the slot.
Practice workbook
Frequently asked questions
Why floor at zero?
Can I total a route?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class