Inventory valuation template: FIFO, LIFO and weighted average

Inventory valuation template: FIFO, LIFO and weighted average
Inventory stops being simple arithmetic the day a supplier changes a price. While every purchase of an item costs the same, units times price is enough and the balance looks after itself; when a ream of paper goes from 8,500 to 9,200 halfway through the month, the question is no longer how many units are left but what they are worth and what the units already issued cost. This workbook answers that with two working sheets: one where every movement is recorded and one where each product is valued at the weighted average cost of its receipts. There are no macros, no pivot table to build, and every formula stays visible so anyone can audit it.
Valuation is not paperwork: it is the figure that goes into cost of sales and into the closing inventory on the balance sheet. Get it wrong and the month's margin is wrong too, and the error only shows up when someone compares profit with the money in the bank. That is why the workbook does not just count units: it keeps the cost of receipts apart from the cost of issues and leaves a valued balance per product, which is the figure accounting needs and the one that informs the next purchase.
The file has three sheets and a worked example with two stationery items, so the effect of a price change is visible without typing anything. You can clear the example and work with your own catalogue, or keep the rows and replace the data. The sections below cover what each sheet holds, which formulas it uses, how to fill it in, how to read the result and which mistakes make the balance untrustworthy.
What it calculates and what the number is for
The workbook answers two questions that always come together: what the units issued during the period cost, and what the units still on hand are worth. The Movements sheet accumulates every receipt and every issue with its date, product, units and the unit cost of that purchase; the Summary sheet takes only the receipts of each product, adds their cost, divides by the units purchased and produces an average cost. That average is multiplied by the units issued to get the cost of issues, and by the units remaining to get the valued balance. The result is one number per product rather than a single company total, and that is deliberate: buying decisions are made product by product.
The figure the sheet returns is not an average of prices but a cost per unit. If an item had 100 units at 8,500 and 60 at 9,200, the average is not 8,850 —the midpoint between the two prices— but 8,762.50, because each price is weighted by the quantity bought at that price. The difference matters when purchase sizes vary, which is the normal case: you buy heavily on promotion and lightly when the price is high. The average cost column does exactly that weighting: total receipt cost divided by total units received.
The three sheets in the file
The structure is short and each sheet has a single job. Movements is the book of receipts and issues; Summary is the valuation table by product; Instructions is six numbered steps for whoever opens the file for the first time. The first two have panes frozen at row 5, dates formatted DD/MM/YYYY and unit costs shown to two decimals. The movement type is not typed by hand: the cell carries a drop-down with two values, Entrada and Salida, so the lookup behind the Summary never fails because of a capital letter or a stray space.
| Sheet | What you type | What it calculates | Rows prepared |
|---|---|---|---|
| Movements | Date, type (Entrada or Salida), product, units and unit cost | The value of the movement: units times unit cost | Value formula down to row 24; lookups down to row 40 |
| Summary | The product name in column A | Units in and units out, purchase cost, average cost, cost of issues and the balance in units and value | Twelve products, rows 5 to 16 |
| Instructions | Nothing: six steps of use | Nothing: it plays no part in the calculation | — |
The columns and the formulas, one by one
Each column in the Summary is a formula you can read and audit; nothing is hidden and no figure is pasted in as text. The table below shows what each one computes, in the order it appears on the sheet, so a reviewer can follow the chain from a single receipt to the closing balance.
| Column | What the formula does | What it means |
|---|---|---|
| Movements · Value (F) | =IF(D5="","",D5*E5) | Units times unit cost; leaves the cell blank when the row has no data |
| Summary · Units in (B) | SUMIF by product over the units column | Every unit recorded for the product, whatever the type |
| Summary · Units out (C) | SUMIFS by product and type Salida | Only the units flagged as an issue |
| Summary · Purchase cost (D) | SUMIFS by product and type Entrada over the value column | The cost of the purchases made for that product |
| Summary · Average cost (E) | =IF(B5=0,"",D5/B5) | Purchase cost divided by units received |
| Summary · Cost of issues (F) | =IF(E5="","",C5*E5) | Units issued at the average cost |
| Summary · Balance units (G) | =B5-C5 | Units in minus units out |
| Summary · Balance value (H) | =IF(OR(G5="",E5=""),"",ROUND(G5*E5,2)) | Balance in units at average cost, rounded to two decimals |
The IF wrapped around each formula leaves the cell blank while the row is empty, and the ROUND in the last column brings the balance to two decimals so it reconciles with accounting. Everything else is plain arithmetic: conditional sums, one division and two subtractions.
How to fill it in, step by step
First, record the movements in date order, mixing receipts and issues as they happened, because the Summary classifies them by the Type column and not by their position in the list. Each row carries the real date on the document —not the day it gets typed—, the product under the same name you will use in the Summary, the units and the unit cost of that purchase. On issues the unit cost can stay at zero: the workbook does not need it, because it values the issue at the average of the receipts, and leaving it empty stops someone from inventing a cost that belongs to no purchase.
Then move to the Summary sheet and type the product name in column A, one per row, exactly as it was written in Movements. The other seven columns fill themselves. If a product shows zero, the cause is nearly always the name: a leading space, a different accent or a changed word is enough for the conditional sum to find nothing. When the catalogue grows past the twelve products the sheet provides, copy the last row down and the formulas adjust themselves; when you add movements below row 24, copy the formula in column F, which is the only one that does not extend on its own. One practical note on the English file: the two drop-down values are still spelled Entrada and Salida, in Spanish, because the formulas look for exactly those words — pick them from the list and do not translate them.
How to read the result
With the example the file ships with, the result takes a minute to read. The paper ream had two receipts: 100 units at 8,500 and 60 at 9,200, that is 160 units for 1,402,000, which gives an average cost of 8,762.50. Issues were 120 units —40 and then 80— so the cost of issues is 1,051,500 and 40 units remain valued at 350,500. The pen, bought once at 200 units for 1,200 each, has an average equal to its only price: 150 units issued for 180,000 and 50 left for 60,000.
Added together the two balances give 410,500, the value of the inventory at the date of the last recorded movement. That is the figure that goes to the month-end close and the one you compare with the physical count; it is also the balance that feeds the opening and closing inventory calculation for the period. If the count says 38 units where the book says 40, the gap has a value: 2 times 8,762.50. That is where the investigation starts —an unrecorded issue, damage, a typing error— and that is what a valued balance makes possible and a list of quantities does not.
FIFO, LIFO and weighted average: what changes
All three methods answer the same question with a different rule about which purchase leaves first. FIFO assumes the oldest units go out first, leaves the most recent cost in inventory and, when prices rise, reports a lower cost of sales and a higher balance. LIFO does the opposite: it releases the newest receipts, charges the new price to cost of sales and keeps inventory at old cost. Weighted average, the one this workbook calculates, removes that decision: every unit of the product is worth the same, no matter which month it arrived.
The choice changes the month's margin even though the money in the bank is identical, which is why it is not entirely free: accounting rules in each country and the nature of the business limit which methods are allowed. This file values at weighted average because it is the most stable criterion for a small business and the one that depends least on rebuilding layers. FIFO and LIFO need one layer per purchase, with its units and its cost; this version does not include a layers sheet and does not compute them automatically, although the Movements register keeps the date and the cost of every receipt, which is precisely the data those layers are built from. Anyone who needs FIFO or LIFO can export that list and work the layers separately without retyping anything.
Common mistakes
The most common mistake is typing a value over the formula in column F. The sheet still works, but that movement stops recalculating and the purchase cost in the Summary goes stale the moment someone corrects the units. The second is adding movements below row 24 without copying that formula: the lookup reaches row 40 and finds the movement, but the value column is empty, so the purchase cost is not added and the average comes out lower than it should be.
Product names fail too: "Resma carta" and "resma Carta" are two different products as far as the conditional sum is concerned, and one of them stays at zero. Another slip is editing the type cell by typing instead of choosing from the list; if it ends up as "salida" in lower case or with a trailing space, the formula does not recognise it and the issue is never subtracted from the balance. And there is a deeper confusion to clear up: this is not a line-by-line stock ledger, it carries no running balance after each movement and no minimum stock alerts. It is a valuation per product at the close of the period; for the balance movement by movement you want a weighted-average kardex.
The sheet on screen

The image shows the Movements sheet, with the file name on the tab and the title block at the top: the INVENTORY MOVEMENTS heading, the line explaining that every receipt and every issue carries its unit cost, and the format reference with its version. Below it sits the header row with the six columns and the two example products: six November movements, the paper ream alternating receipts and issues and the pen at the end. The issues appear with zero cost and zero value, as explained: the real cost of those issues is worked out on the other side, in the Summary sheet. The rest of the sheet is blank, with the rows prepared to keep recording.
Used with discipline —one movement per document, identical product names on both sheets and the column F formula copied as far as the data goes— the valued balance holds itself and the month-end close stops being a reconstruction. Download it, replace the example with your own catalogue and use it alongside the kardex when you need the movement-by-movement detail. Kardex Tauro publishes these templates so that inventory control does not depend on a spreadsheet put together in a hurry.







