A stock Excel sheet works when it has three parts: a list of items, a log of every stock movement, and a balance that the sheet adds up for you. Type the opening quantity once, record each stock in and stock out as a new row, and let a SUMIFS formula work out what should be on the shelf. Then count the shelf now and then to prove the sheet is right.
This guide gives you the exact layout, the columns and the formulas, with an example from a small hardware shop. It works the same in Microsoft Excel, Google Sheets and LibreOffice.
What a stock sheet must do
A useful stock sheet answers four questions for each item:
- How many should I have? Opening stock, plus everything that came in, minus everything that went out.
- When do I reorder? A reorder level that flags the item before it runs out.
- What is my stock worth? Quantity times cost per unit.
- Does the shelf agree? A stock count compared with the sheet.
Most stock sheets fail because they try to do all of this in one row per item, and someone types over the quantity every day. Keep the history in its own sheet, and the balance is never typed by hand.
The three sheets
Sheet 1: Items
One row per item. The first six columns are typed once. The last five are formulas.
| Column | Header | What goes in it |
|---|---|---|
| A | Code | A short, unique code, such as H001 |
| B | Item name | Name, size and colour, so look-alike items stay apart |
| C | Unit | The unit you count in: piece, bag, length, carton |
| D | Opening qty | The physical count on the day you start |
| E | Cost per unit (LKR) | What one unit cost you |
| F | Reorder level | The quantity at which you order again |
| G | Stock in | Formula: total IN from the Movements sheet |
| H | Stock out | Formula: total OUT from the Movements sheet |
| I | Balance | Formula: opening + in - out |
| J | Status | Formula: OK, REORDER or CHECK |
| K | Stock value (LKR) | Formula: balance x cost |
Sheet 2: Movements
One row for every stock movement, in date order. Never edit an old row; add a correcting row instead.
| Column | Header | Example |
|---|---|---|
| A | Date | 03/11/2026 |
| B | Reference | GRN-0153, a bill number, or ADJ-001 for a correction |
| C | Item code | H001 (a drop-down list from the Items sheet) |
| D | Type | IN or OUT (a drop-down list) |
| E | Qty | 100 |
| F | Note | Supplier, reason for damage, who counted |
Stock in is a purchase, a goods received note or a customer return. Stock out is a sale, a damaged item written off or a return to the supplier. If you receive goods with a goods received note, put the GRN number in the Reference column; see what is a GRN.
Sheet 3: Stock count
Type the item code and the quantity you counted. The sheet looks up the system quantity and shows the difference and its value, so you know what to check.
| Column | Header | Formula or entry |
|---|---|---|
| A | Item code | Typed |
| B | Item name | Looked up from Items |
| C | System qty | Looked up from the Balance column |
| D | Counted qty | Typed after counting |
| E | Difference | Counted - system |
| F | Value of difference (LKR) | Difference x cost |
| G | Reason or action | Typed |
The formulas
Put these in row 2 of the Items sheet and copy them down. They assume the column letters in the tables above.
- Stock in (G2):
=SUMIFS(Movements!E:E,Movements!C:C,A2,Movements!D:D,"IN") - Stock out (H2):
=SUMIFS(Movements!E:E,Movements!C:C,A2,Movements!D:D,"OUT") - Balance (I2):
=D2+G2-H2 - Status (J2):
=IF(I2<0,"CHECK",IF(I2<=F2,"REORDER","OK")) - Stock value (K2):
=I2*E2 - Total stock value:
=SUM(K2:K200)at the bottom of column K
In the Stock count sheet:
- System qty (C2):
=IFERROR(VLOOKUP(A2,Items!A:I,9,FALSE),0) - Difference (E2):
=D2-C2 - Value of difference (F2):
=E2*VLOOKUP(A2,Items!A:E,5,FALSE)
Three small settings make the sheet much safer:
- Drop-down lists. Use Data Validation so Type only accepts IN or OUT, and Item code only accepts codes from the Items sheet. A typo in a code is the most common reason a balance goes wrong.
- Red for reorder. Add conditional formatting so a REORDER status turns red and CHECK turns yellow.
- Lock the formulas. Protect the formula columns, or shade them grey, so nobody types over them.
A worked example
A small hardware shop starts its sheet with three items on 1 November 2026:
| Code | Item | Unit | Opening qty | Cost per unit (LKR) | Reorder level |
|---|---|---|---|---|---|
| H001 | PVC pipe 1/2 inch, 6 m | length | 120 | 520.00 | 40 |
| H002 | Wall putty, 20 kg bag | bag | 35 | 2,450.00 | 15 |
| H003 | Brass water tap | piece | 48 | 1,180.00 | 20 |
During the first week it records these movements:
| Date | Reference | Code | Type | Qty |
|---|---|---|---|---|
| 03/11/2026 | GRN-0153 | H001 | IN | 100 |
| 03/11/2026 | Sales 3 Nov | H001 | OUT | 45 |
| 04/11/2026 | Sales 4 Nov | H002 | OUT | 22 |
| 05/11/2026 | Sales 5 Nov | H003 | OUT | 31 |
| 06/11/2026 | GRN-0154 | H002 | IN | 30 |
| 07/11/2026 | Sales 7 Nov | H001 | OUT | 60 |
| 07/11/2026 | ADJ-001 | H003 | OUT | 4 |
The Items sheet then shows:
| Code | Stock in | Stock out | Balance | Status | Stock value (LKR) |
|---|---|---|---|---|---|
| H001 | 100 | 105 | 115 | OK | 59,800.00 |
| H002 | 30 | 22 | 43 | OK | 105,350.00 |
| H003 | 0 | 35 | 13 | REORDER | 15,340.00 |
| Total | 180,490.00 |
The brass tap is below its reorder level of 20, so it is flagged. On Saturday the owner counts the shelf: 113 lengths of PVC pipe against 115 in the sheet. The Stock count sheet shows a difference of -2, worth Rs. -1,040.00. After checking the bills for 7 November, the owner finds two lengths sold on a handwritten bill that was never entered, and adds an OUT row for 2 with the bill number.
What cost to use
Use one rule for every item and stick to it:
- VAT. If you are VAT-registered and claim input VAT on purchases, record cost before the 18% VAT. If you are not registered, the VAT is part of your cost.
- Import costs. For imported goods, freight, duty and clearing are part of the cost of the item, not a separate expense. See landed cost explained.
- Price changes. A simple sheet keeps one cost per item, usually the latest. When you buy the same item at different prices, the value of your stock depends on the costing method you use, such as first in, first out or weighted average cost. Your accountant decides which one your books use.
Units, cartons and pieces
Count each item in one unit only. If you buy a carton of 12 and sell by the piece, keep the sheet in pieces and enter a carton received as 12. Mixing cartons and pieces in one column is a quick way to lose stock. See selling by carton and piece.
A daily routine that keeps the sheet right
- Enter goods received the same day, from what you counted at the door, not from the supplier's bill.
- Enter the day's sales before closing, from your bill book or POS report, as one OUT row per item.
- Write off damage at once, with an ADJ reference and a reason.
- Count a few items every week, such as one shelf or your ten fastest sellers, and fix differences with ADJ rows. See how to do a stock count.
- Save a dated copy every month, so you can see what changed if the file gets damaged.
Common mistakes
- Typing over the balance. Once someone types a number into a formula cell, the sheet stops adding up and nobody notices.
- Editing old rows. If a row was wrong, add a correcting row with a note. A sheet whose history changes cannot be trusted.
- Two names for one item. "Tap brass 1/2" and "1/2 brass tap" become two items with two wrong balances. Use codes.
- Several people, one file. Two people saving copies of the same file means one set of entries is lost.
- Entering from the bill, not the delivery. The bill shows what you were charged; the delivery shows what arrived. Use the goods received note.
- Never counting. A sheet that is never compared with the shelf drifts further from reality every week.
When Excel is no longer enough
A stock sheet is a good start for one shop and one person. These are the signs you have outgrown it:
- More than one person enters stock, or more than one shop shares the file.
- You track batches and expiry dates, or serial and IMEI numbers.
- Daily sales are entered hours later, so the balance is never current.
- You import goods and need landed cost in every item's cost.
- Stock counts keep finding the same differences.
Read Excel vs accounting software for a fuller comparison.
How RealCloud handles it
RealCloud is cloud accounting, inventory, billing and POS software, with an online store, built for Sri Lankan businesses. It keeps the stock register for you:
- Stock moves by itself. Every invoice, POS sale, return, goods received note and transfer updates stock, so nobody types a movement twice.
- Items. SKU, barcode, category, brand, sales, wholesale and purchase prices, supplier, reorder point and reorder quantity, and your own custom fields.
- Stock by store. On-hand, available, committed and on-order quantities for each shop or warehouse, with transfers between stores.
- Counts and adjustments. Full or partial stock counts that create the adjustments, and an inventory discrepancy report.
- Reorder and slow movers. A low-stock report and an FSN report of fast, slow and non-moving items.
- Units, batches and serials. Alternate units with conversion, batches with expiry dates, and serial numbers from receipt to sale.
- Landed cost. Freight, duty and clearing spread across imported goods.
Our team helps you load your items and opening stock during setup. See our inventory management software, how it works for hardware shops and wholesalers, or ask for a free demo call.
Sources and date checked
Facts checked on 10 November 2026.
- Inland Revenue Department (IRD), Value Added Tax Act, No. 14 of 2002, consolidated text incorporating amendments up to 31.12.2025: VAT at 18% and input tax.
- Sri Lanka Accounting Standards, LKAS 2 Inventories, paragraph 11: import duties, non-recoverable taxes and transport are part of the cost of purchase.
- Spreadsheet formulas checked in Microsoft Excel syntax and recalculated in LibreOffice Calc on 10 November 2026 with the example above.