How to Track Vending Machine Inventory and Sales in Excel
You counted nine cans in machine M01. The spreadsheet expected ten. Before calling the missing can a sale, check what was loaded, sold, discarded or moved. One Excel movement log can cover eight machines. Give every machine a stable ID and keep one line per movement.
Record what happened at each machine
Use the machine ID and SKU together. Keep a timestamp and reference in the real log. Start each period with a physical count, record subsequent movements, and finish with a second count before the next refill. Use a separate recorded sales source when you have one, such as a machine report, a compatible meter or a reliable sales log. VendSys describes both meter-based and inventory-based reconciliation. If sales are absent, a drop in stock gives you unexplained depletion. Leave it for review.
For a transfer, record the quantity sent at the origin and the quantity received at the destination as separate rows with the same reference. In the example, T17 sent four cans and received three by the count. Review the remaining can before treating it as loss. See the separate shipped-versus-received transfer check for more than one open transfer.
Build a one-period movement log
The following data is synthetic. Paste this CSV into A1:F14 in Excel, splitting on commas if needed. All rows belong to one count period. Enter quantities as positive numbers. Use a controlled list for the five movement types.
Machine,SKU,Type,Quantity,Reference,Signed quantity M01,Cola,Load,12,L01 M01,Cola,Sale,7,S01 M01,Cola,Waste,1,W01 M01,Cola,Transfer out,4,T17 M02,Cola,Transfer in,3,T17 M02,Cola,Sale,2,S02 M02,Cola,Load,5,L02 M01,Chips,Sale,3,S03 M01,Chips,Waste,2,W02 M03,Chips,Load,6,L03 M03,Chips,Sale,4,S04 M03,Cola,Sale,2,S05 M03,Cola,Load,3,L04
Enter this formula in F2 and fill down to F14. Resolve every Check type row and confirm quantities are positive whole numbers before using the totals.
=IF(OR(C2="Load",C2="Transfer in"),D2,IF(OR(C2="Sale",C2="Waste",C2="Transfer out"),-D2,"Check type"))
Compare expected and counted stock by machine and SKU
Set up the summary in H1:P7. Use the first four columns below as the inputs in H:K. Leave the last counted cell blank. Enter the formulas in L2:P2, then fill down to row 7. The last five columns show the expected results.
| Machine | SKU | Opening | Counted | Sold | Waste | Net transfer | Expected | Variance |
|---|---|---|---|---|---|---|---|---|
| M01 | Cola | 10 | 9 | 7 | 1 | -4 | 10 | -1 |
| M02 | Cola | 4 | 10 | 2 | 0 | 3 | 10 | 0 |
| M01 | Chips | 8 | 3 | 3 | 2 | 0 | 3 | 0 |
| M03 | Chips | 0 | 1 | 4 | 0 | 0 | 2 | -1 |
| M03 | Cola | 8 | 9 | 2 | 0 | 0 | 9 | 0 |
| M02 | Chips | 5 | Leave blank | 0 | 0 | 0 | 5 | Not counted |
L2 =SUMIFS($D$2:$D$14,$A$2:$A$14,H2,$B$2:$B$14,I2,$C$2:$C$14,"Sale") M2 =SUMIFS($D$2:$D$14,$A$2:$A$14,H2,$B$2:$B$14,I2,$C$2:$C$14,"Waste") N2 =SUMIFS($D$2:$D$14,$A$2:$A$14,H2,$B$2:$B$14,I2,$C$2:$C$14,"Transfer in")-SUMIFS($D$2:$D$14,$A$2:$A$14,H2,$B$2:$B$14,I2,$C$2:$C$14,"Transfer out") O2 =J2+SUMIFS($F$2:$F$14,$A$2:$A$14,H2,$B$2:$B$14,I2) P2 =IF(ISNUMBER(K2),K2-O2,"Not counted")
M01 Cola starts at 10. Rows 2–5 add 12, subtract seven sales, one discarded can and four sent cans. The expected count is 10, so P2 shows a shortage of one. M03 Chips also has a one-unit shortage in P5. M02 Chips has no movements and no physical count, so P7 says Not counted. A verified physical count of zero should be entered as 0.
For a recurring route, convert the movement log to an Excel Table and add a period or timestamp filter to every summary. Use SUMIFS for matching machine, SKU and period. A PivotTable can also summarize logged units by machine, SKU and movement type, with the physical count comparison kept beside it.
For cash collection records, see the vending machine cash reconciliation guide. It compares a bag count with the coin-box and bill-stacker meter readings.
Follow the variance back to the source rows
If the movement and count tabs are already in a workbook, try this in Jolene.pro.
“For each machine and SKU, compare opening stock plus signed movements with the physical count. List logged sales, waste, unmatched transfers and missing counts separately. Show the cell references behind each variance. Use the count period in the workbook.”
Check the returned references against your log before adjusting stock. The figures above are independently checked synthetic examples.
1 comment