Small Business Math

How to Track Inventory With Formulas in Excel

Track stock levels in Excel with formulas for stock on hand, a reorder point and a reorder flag, using a simple log of stock received and sold.

On this page
  1. Two sheets: a log and a stock list
  2. Stock on hand
  3. Reorder point
  4. Flag items that need reordering
  5. Catch negative stock
  6. Check against a physical count
  7. Look up item details
  8. Limits of a spreadsheet

Two sheets: a log and a stock list

Keep every stock movement in a log, with one row per movement: date, item, quantity in (received) and quantity out (sold or used). Then calculate the current stock on a second sheet with one row per item. The log records what happened, and the stock list turns it into current figures.

Stock on hand

Stock on hand is the opening count plus what was received, minus what was sold or used.

On a stock sheet, put the item name in A2 and the opening count in B2. Then:

  • Received: =SUMIFS(Log!$C:$C,Log!$B:$B,A2)
  • Sold: =SUMIFS(Log!$D:$D,Log!$B:$B,A2)
  • On hand: =B2+C2-D2

The SUMIFS formulas total the log for that item. How to use sumif in excel covers the single-condition version of the same idea.

Reorder point

A common starting point for a reorder point is:

reorder point = average daily sales × lead time in days + safety stock

Average daily sales is the total sold in a period divided by the number of days in that period. Lead time is how long a supplier takes to deliver. Safety stock is extra units you keep for surprises.

Suppose 120 units sold in 30 days, a 7-day lead time and a safety stock of 10 units. Average daily sales are 4, so the reorder point is 4 × 7 + 10 = 38 units.

In the sheet, put the total sold in D2, the number of days in H1, the lead time in H2 and the safety stock in H3. The reorder point in F2 is:

=(D2/$H$1)*$H$2+$H$3

Treat the result as an estimate, and adjust it as you see how sales actually move.

Flag items that need reordering

Compare on-hand stock with the reorder point:

=IF(E2<=F2,"Reorder","OK")

This puts a flag beside any item at or below its reorder point. Copy the formula down the list.

Catch negative stock

On-hand stock can go negative when a sale is logged before the delivery that covers it. A check makes the problem visible:

=IF(E2<0,"Check count","")

Negative stock usually means a missed entry in the log, not a real negative quantity, so look at the log first.

Check against a physical count

Once a month, count the shelves and compare the count with the on-hand figure. The difference is the count minus the on-hand figure. A small gap is normal and often comes from breakage, samples or missed entries. A large or repeated gap means the log needs a closer look.

Look up item details

If each item has a code, you can pull its price, supplier or cost from an item list. How to use xlookup in excel shows the newer approach, and how to use vlookup step by step covers the older function you’ll still find in many workbooks. How to look up data in excel explains which to choose.

Limits of a spreadsheet

A spreadsheet works well for a modest number of items in one location. Once you have many products, several warehouses or orders to manage, a dedicated inventory system is usually more practical. Even then, the same ideas of stock on hand, reorder points and counts still apply.

The complete guide to small business math

Excel Formulas for Small Business
Read the guide

Keep exploring

Guides from other topics

All topics →