Skip to content
Sri Lanka · Sinhala, Tamil & English

Stock Excel sheet template: how to keep stock in Excel, step by step

By RealCloud TeamLast updated Facts checked on 10 min read

How to build a simple stock register in Excel or Google Sheets for a Sri Lankan shop: the three sheets you need, the exact columns and formulas for stock in, stock out, balance and reorder alerts, a worked example, a daily routine, common mistakes, and the signs it is time to move to stock software.

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:

  1. How many should I have? Opening stock, plus everything that came in, minus everything that went out.
  2. When do I reorder? A reorder level that flags the item before it runs out.
  3. What is my stock worth? Quantity times cost per unit.
  4. 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.

ColumnHeaderWhat goes in it
ACodeA short, unique code, such as H001
BItem nameName, size and colour, so look-alike items stay apart
CUnitThe unit you count in: piece, bag, length, carton
DOpening qtyThe physical count on the day you start
ECost per unit (LKR)What one unit cost you
FReorder levelThe quantity at which you order again
GStock inFormula: total IN from the Movements sheet
HStock outFormula: total OUT from the Movements sheet
IBalanceFormula: opening + in - out
JStatusFormula: OK, REORDER or CHECK
KStock 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.

ColumnHeaderExample
ADate03/11/2026
BReferenceGRN-0153, a bill number, or ADJ-001 for a correction
CItem codeH001 (a drop-down list from the Items sheet)
DTypeIN or OUT (a drop-down list)
EQty100
FNoteSupplier, 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.

ColumnHeaderFormula or entry
AItem codeTyped
BItem nameLooked up from Items
CSystem qtyLooked up from the Balance column
DCounted qtyTyped after counting
EDifferenceCounted - system
FValue of difference (LKR)Difference x cost
GReason or actionTyped

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:

CodeItemUnitOpening qtyCost per unit (LKR)Reorder level
H001PVC pipe 1/2 inch, 6 mlength120520.0040
H002Wall putty, 20 kg bagbag352,450.0015
H003Brass water tappiece481,180.0020

During the first week it records these movements:

DateReferenceCodeTypeQty
03/11/2026GRN-0153H001IN100
03/11/2026Sales 3 NovH001OUT45
04/11/2026Sales 4 NovH002OUT22
05/11/2026Sales 5 NovH003OUT31
06/11/2026GRN-0154H002IN30
07/11/2026Sales 7 NovH001OUT60
07/11/2026ADJ-001H003OUT4

The Items sheet then shows:

CodeStock inStock outBalanceStatusStock value (LKR)
H001100105115OK59,800.00
H002302243OK105,350.00
H00303513REORDER15,340.00
Total180,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

  1. Enter goods received the same day, from what you counted at the door, not from the supplier's bill.
  2. Enter the day's sales before closing, from your bill book or POS report, as one OUT row per item.
  3. Write off damage at once, with an ADJ reference and a reason.
  4. 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.
  5. 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.

Frequently asked questions

How do I maintain stock in an Excel sheet?

Use three sheets. An Items sheet lists each item with its opening quantity, cost and reorder level. A Movements sheet gets one row for every stock in and stock out, with the date, reference, item code, IN or OUT, and quantity. The Items sheet then adds up the movements with SUMIFS, so the balance is opening plus in minus out. Enter movements every day and count the shelf regularly.

What is the formula for closing stock in Excel?

Closing stock is opening stock plus stock in minus stock out. If the opening quantity is in column D, stock in in column G and stock out in column H, the balance is =D2+G2-H2. Stock in and stock out come from the Movements sheet with SUMIFS, for example =SUMIFS(Movements!E:E,Movements!C:C,A2,Movements!D:D,"IN").

How do I show a reorder alert in an Excel stock sheet?

Add a reorder level for each item and a status column with a formula such as =IF(I2<=F2,"REORDER","OK"), where I is the balance and F is the reorder level. Add conditional formatting so REORDER rows turn red. Check the status column before you call your suppliers.

Should the cost in my stock sheet include VAT?

If your business is VAT-registered and claims the VAT on purchases as input tax, record cost before VAT, because that VAT comes back to you. If you are not VAT-registered, the VAT you pay is part of your cost, so include it. Your accountant can confirm the right treatment for your business.

Can I keep stock for two shops in one Excel file?

Yes, but it gets harder to keep right. Add a Store column to the Movements sheet and include the store in the SUMIFS formula, or keep one file per shop. Transfers between shops then need two rows, an OUT from one shop and an IN to the other, entered by the same person.

When should I stop using Excel for stock?

Move to stock software when you have more than one person entering stock, more than one shop, items with batches, expiry dates or serial numbers, or when the shelf and the sheet keep disagreeing. Stock software updates the balance from each bill and goods received note, so nobody types it twice.

Related guides

How to do a stock count in a Sri Lankan shop, step by step

A step-by-step guide to counting stock in a shop or warehouse: when to do a full count and when a partial count is enough, how to prepare, how to count, how to investigate differences and how to turn them into stock adjustments, including how RealCloud generates the adjustments.

Updated 1 November 2026 · 6 min read

Selling by carton, box and piece: how to set up units in your stock

How to handle items you buy in one unit and sell in another, such as cartons and pieces, bags and kilos or rolls and metres: base and alternate units, the conversion factor, a worked example, common mistakes, and the limits for batch- and serial-tracked items in RealCloud.

Updated 1 November 2026 · 7 min read

Stock valuation methods: FIFO and weighted average cost, with worked examples

A plain-English guide to valuing stock for Sri Lankan shops and wholesalers: what goes into the cost of stock, the first-in, first-out (FIFO) and weighted average cost methods worked out step by step in rupees, how each changes your profit, why LIFO is not allowed under Sri Lankan accounting standards, and the lower of cost and net realisable value rule.

Updated 10 November 2026 · 10 min read

Excel vs accounting software for a small business in Sri Lanka

When a spreadsheet is enough for a small Sri Lankan business and when accounting software is worth it: stock, credit, cheques, VAT invoices, multiple users and branches, plus signs it is time to switch, how to move your data and what to ask a vendor.

Updated 4 November 2026 · 7 min read

Get a free demo call

Leave your number—we will call you back in Sinhala, Tamil, or English.

Get a free demo call

+94