To convert an invoice unit of measure, multiply the invoiced quantity by a documented conversion factor (for example 12 pieces per box), then divide the line net amount by that converted quantity to get a comparable price per piece. Keep the original quantity, unit and price beside the converted values, and use only a factor proven for that product and date, never one chosen because it makes the totals match.
Vendor invoices mix units all the time: one vendor (supplier) bills boxes, another bills pieces, a third bills cartons by weight. Unit of measure (UoM) conversion puts those lines on one base unit so you can compare prices, average them or match them to a purchase order, without losing what the invoice actually says.
How do you convert a box price to a price per piece?
Work from the line, not from the printed unit price alone. All amounts in this synthetic example are in US dollars before sales tax or VAT, with no discounts or charges.
- Read the line as printed. Vendor A invoices 2 boxes at $24.00 per box: line net amount $48.00.
- Find the conversion factor in evidence. The product specification for this item states 12 pieces per box.
- Convert the quantity. 2 boxes × 12 pieces per box = 24 pieces.
- Derive the base-unit price. $48.00 ÷ 24 pieces = $2.00 per piece.
- Check the result both ways. 24 pieces × $2.00 = $48.00, the printed line net; 24 pieces ÷ 12 = 2 boxes, the printed quantity.
Vendor B invoices 24 pieces at $2.10: 24 × $2.10 = $50.40. On the same base unit, A is $2.40 cheaper for the same 24 pieces ($50.40 − $48.00). Compared on the printed prices alone ($24.00 against $2.10), the two lines could not be ranked at all.
Without the 12-piece specification, A’s price per piece is unknown. Keep “box”, quantity 2 and $24.00 as they are, and leave the converted columns empty rather than guessing.
InvoiceLineLab extracts invoice line items from PDF to Excel or CSV, with descriptions, references, quantities, units, prices and net amounts in separate columns when the invoice prints them, plus the invoice and page each row comes from. You keep the original unit next to your conversion factor instead of retyping lines from the PDF.
What is the difference between a unit of measure and a price base?
A conversion factor and a price base are two different denominators. The conversion factor says how many base units a package contains (12 pieces per box). The price base says how many units the printed price covers (a price per 1, per 10 or per 100 pieces). Mixing them up produces errors by a factor of 10 or 100. When a vendor quotes per hundred, apply the method for prices quoted per 100 units before you convert anything.
Structured e-invoices separate these fields. In the Peppol BIS Billing 3.0 specification, every invoiced quantity carries a mandatory unit code taken from UN/ECE Recommendation 20, extended with Recommendation 21 packaging codes. That code list includes, for example, H87 “piece”, C62 “one”, KGM “kilogram”, XBX “box” and XCT “carton”. The price group holds the item net price and an optional base quantity.
A unit code identifies the unit; it does not say how many pieces a particular box holds. XBX tells you the line is in boxes, not whether the box contains 10 or 12 pieces. The factor still has to come from product evidence. On a PDF invoice, the unit may appear only as a column heading, an abbreviation such as “BX” or “EA”, or a word inside the description, so record where you read it.
Where should the conversion factor come from?
Use evidence that applies to the exact item and period:
- the product specification or packaging data for that item reference;
- the vendor’s catalog or detailed line export for the invoice date;
- the purchase order line, if it states both units;
- a label or delivery document showing the pack contents.
Tie the factor to the item reference and the date, not to the vendor as a whole. In a second synthetic purchase, the vendor replaces the box with a 10-piece version that still costs $24.00. Two boxes now hold 2 × 10 = 20 pieces, so the price is $48.00 ÷ 20 = $2.40 per piece. Reusing the old factor of 12 would report $2.00 and hide a 20% increase.
If the specification and the invoice disagree, keep the original line and leave the comparison pending. Do not pick the factor that makes the vendor look cheaper, and do not default an unknown factor to 1.
How do you build a reversible conversion table in Excel?
Keep the source fields untouched and add the conversion beside them. One row per invoice line:
| Column | Vendor A row | Content |
|---|---|---|
| Item reference | A-100 | as printed |
| Invoice date | 2026-03-02 | as printed |
| Invoiced quantity | 2 | as printed |
| Invoiced unit | box | as printed |
| Printed price per invoiced unit | 24.00 | as printed |
| Line net amount | 48.00 | as printed |
| Factor (pieces per unit) | 12 | from evidence |
| Factor evidence | product specification, 2026 edition | reference |
| Converted quantity | 24 | = quantity × factor |
| Net per piece | 2.00 | = line net ÷ converted quantity |
| Status | confirmed | confirmed / pending / not needed |
Three checks make the table reversible: converted quantity ÷ factor returns the invoiced quantity; converted quantity × net per piece returns the line net at the precision you kept; and a line already in pieces is marked “not needed” (factor 1 by evidence), which is different from “unknown pack size”.
The same structure handles price bases. Here vendor C invoices the same item at $200.00 per 100 pieces:
| Source | Invoiced quantity | Confirmed pieces | Price basis | Line net | Net per piece |
|---|---|---|---|---|---|
| A | 2 boxes of 12 | 24 | $24.00 per box | $48.00 | $2.00 |
| B | 24 pieces | 24 | $2.10 per piece | $50.40 | $2.10 |
| C | 24 pieces | 24 | $200.00 per 100 pieces | $48.00 | $2.00 |
For C, the line net is 24 ÷ 100 × $200.00 = $48.00. Multiplying 24 by $200.00 would create a false $4,800.00. “Per 100” without a named unit is incomplete; confirm whether it means 100 pieces, 100 grams or 100 boxes.
Units by weight follow the same logic. Vendor D invoices 3 cartons at $9.00 per carton ($27.00), and the documented net weight is 2.5 kg per carton: 3 × 2.5 = 7.5 kg, and $27.00 ÷ 7.5 kg = $3.60 per kg. For variable-weight packs, use the weight printed for that delivery, not a remembered average.
Which cost are you comparing after conversion?
The table above compares item net prices. If vendor A also charges $6.00 of delivery before tax, wholly attributable to this purchase, and vendor B charges none, A’s delivered cost becomes ($48.00 + $6.00) ÷ 24 = $2.25 per piece. B stays at $2.10, so the ranking reverses. Label the two results differently (“net item price” and “delivered cost”) and keep the delivery charge in its own column.
Check that both sides use the same basis: a price including sales tax or VAT cannot be ranked against a price before tax, and a line discount changes the realized net per piece even when the list price is the same. If the gap between your rebuilt total and the invoice comes from charges or allowances rather than units, reconcile the line items with the invoice total first. A shared code such as “piece” does not prove equivalent size or quality either.
When should a converted price stay blank?
Leave the converted columns empty, with a visible status, when:
- the pack size is unknown or applies to a different product version;
- the line is “box of assorted parts” with no definition of equivalent contents;
- the units cannot be related (boxes on the invoice, kilograms in the price) without missing evidence;
- the item references differ, so the lines are not the same product.
Before ranking vendors, count the excluded rows and their source amounts. A vendor that looks cheap may simply have more incomplete records. Request the missing specification and keep the original purchase visible while its normalized price remains blank. Item references themselves must survive the import intact; leading zeros in vendor item codes are a common reason two identical items stop matching.
FAQ
What is unit of measure conversion on an invoice?
It restates an invoice line in a common base unit, such as pieces or kilograms, using a documented factor. The original quantity, unit and price stay in the record; the converted quantity and price per base unit are added beside them.
Is “each” the same unit as “piece”?
Often in practice, but not automatically. The UN/ECE code list has separate codes, C62 “one” and H87 “piece”, and vendors use abbreviations such as EA or PC differently. Treat them as equal only when the vendor’s documentation or the item itself confirms it.
Can I convert cartons to kilograms without a weight on the invoice?
Only with documented weight per carton for that item and delivery. Without it, keep the line in cartons and mark the per-kilogram price as unresolved.
Why does my converted price not match the printed unit price?
Check the price base first (per 10 or per 100), then line discounts and charges, then rounding of the printed unit price. Do not change the conversion factor to force a match.
Continue the checks
For the spreadsheet layout behind these columns, see how header fields and line items are separated. To check the rows against a document, open the synthetic invoice example, and read how invoice data validation works line by line.