Converter tool

Three-Way Match for Purchase Orders, Receipts and Invoices

Match PO, goods-receipt and invoice CSVs by PO number and SKU, apply quantity and price tolerances, and list every line that is missing a receipt or PO or differs in quantity or price, with the amount at risk.

One per document type

1. Your three files

Purchase orders

Or paste the table

Goods receipts

Or paste the table

Invoices

Or paste the table

Three-Way Match for POs, Receipts and Invoices

Operator: Abdulla Al Fahad. How tools are built and checked

Four of the ten PO lines in the sample files agree across the purchase order, the goods receipt and the invoice. The rest are the lines that cost money: 352.00 invoiced for four drums that no PO line covers, 230.00 for 200 rolls of tape that were never received, 60 labels billed on INV-8805 against 30 received (297.00 beyond what the order and receipt support), 60 pallets billed against 48 received (168.00), and a washer price of 6.55 against 6.25 on the order (6.00 over 20 units). One more line, foam inserts, is only waiting for its invoice.

This page takes the three exports as your systems produce them, adds up the lines per PO number and SKU, and applies the quantity and price tolerances you set. To compare two files against each other on a plain key, with no tolerances and no third document, use Compare Two Files by Key.

Key features

  • Matches on PO number and SKU across three files, with quantities and values summed per key
  • Tolerances as a percentage, a unit amount or both; the larger of the two applies
  • Seven statuses: Matched, Missing PO, Missing receipt, Qty variance, Price variance, Qty and price variance, and Not invoiced yet
  • An amount at risk per line and in total, so exceptions can be worked largest first
  • Flags the same invoice number billed twice for one line when an invoice-number column is chosen
  • CSV of the exceptions or of every line, and an XLSX with Summary, Lines (variance formulas) and Exceptions sheets

How three files become one status per PO line, and what the tolerances compare

Each file needs a PO number and a quantity column. The purchase orders and the invoices also need a unit price, or a line amount from which the price is worked out as amount divided by quantity. A SKU or line column is optional but is used only when it is chosen in all three files; with a SKU in one or two of them the match falls back to the PO number alone, so every line of a PO is summed together. A description on the PO file and an invoice number on the invoice file are optional extras.

Rows are summed per key. A PO line delivered in two parts (30 nuts on 2 October and 10 on 9 October) becomes one receipt of 40, and an invoice price is the value-weighted average of its priced rows, so a row with no price does not dilute it. Keys are compared ignoring case and spacing, and with the option on also ignoring punctuation, a PO prefix and the leading zeros in a run of digits, so PO-001001, po 1001 and 1001 are one order while INV-1001 stays a different key. Rows with no PO number, or a quantity that is not a number, are skipped and counted above the results.

How it works

For every key found in any of the three files the page works out the ordered quantity and average price, the received quantity, and the invoiced quantity and average price. A tolerance is the larger of the unit tolerance and the percentage tolerance times the base, so 2% of 48 received units is 0.96 but a zero unit tolerance never lets a difference of one unit pass. A difference exactly at the limit passes; sums are rounded so that 0.1 + 0.2 received counts as 0.3. Invoiced quantity is compared with received quantity, and also against ordered quantity as a ceiling, because billing for more than was ordered is an exception even when the goods arrived. Invoice price is compared with PO price. An invoice with no receipt is Missing receipt and one with no PO line is Missing PO, whatever the quantities.

Amount at risk follows the status. Missing PO and Missing receipt count the whole invoice value. A quantity variance counts the billed quantity above the payable quantity (the smaller of received and ordered) at the PO price; a price variance counts the price difference times the invoiced quantity, and a line with both adds the two. Under-billing is flagged as a variance but adds nothing to the exposure. Lines are sorted by status severity and then by amount at risk.

Common use cases

  • A month-end payment run of 3,200 invoice lines checked against receipts and orders at 2% quantity and 1% price tolerance, so only the few hundred lines outside tolerance reach a person.
  • A buyer disputing a supplier statement: the Exceptions sheet shows the 12 pallets billed but not received (168.00) and the label invoice repeated under one invoice number.
  • An audit of service and freight spend: filter to Missing receipt and read the total invoiced on lines that no one confirmed were delivered.

How to use this tool

  1. Load the purchase order, goods receipt and invoice files, or choose Load all three examples.
  2. Check that each file's PO number, SKU, quantity and price columns were picked correctly, and map the invoice-number column if you have one.
  3. Set the quantity and price tolerances your payment policy allows.
  4. Read the exception counts and the amount at risk, then filter the line table by status.
  5. Download the exceptions as CSV, or the whole analysis as XLSX, to send to the buyer or to hold the payment.

Example

Excerpt of the example files (tolerances 2% quantity, 1% price, 0.01 per unit)

PO:      PO-1004,TAPE-48,200 @ 1.15
Receipt: (none for PO-1004)
Invoice: INV-8804,PO-1004,TAPE-48,200 @ 1.15

PO:      PO-1002,PAL-EUR,60 @ 14.00
Receipt: PO-1002,PAL-EUR,48
Invoice: INV-8802,PO-1002,PAL-EUR,60 @ 14.00

Result for all ten lines

Missing PO 1 (PO-1007 DRUM-200, 352.00)
Missing receipt 1 (PO-1004 TAPE-48, 230.00)
Qty variance 2 (PO-1005 LABEL-A5, 297.00; PO-1002 PAL-EUR, 168.00)
Price variance 1 (PO-1001 WASH-M8, 6.00)
Not invoiced yet 1 (PO-1008 FOAM-10)
Matched 4 (invoice value 2,335.00)
Invoiced in total 4,482.00; amount at risk 1,053.00

Common pitfalls

Unit-of-measure mismatches show up as both a quantity and a price variance: 10 boxes of 100 ordered and 1,000 pieces invoiced at a hundredth of the price. Convert to one unit before loading.

Partial invoicing is read as a variance. If a 60-unit order is invoiced in two instalments of 30 and the second invoice is not in the file, the first is flagged against a receipt of 60. Load every invoice for the PO.

Without a SKU column in all three files the match is on the PO number only, so two lines on one PO can offset each other, one over-billed and one under-billed, and look Matched.

  • Map the invoice-number column even though it looks optional. It is the only way the page can tell a doubled invoice line (the labels, INV-8805 twice) from a legitimate second invoice.
  • For low-priced items a percentage rounds to almost nothing: 1% of a 0.40 price is 0.004, under a cent. Set an amount tolerance as well and the larger of the two applies.

Common errors and how to fix them

Choose a unit price or a line amount column for the invoices
The PO and invoice files need one of the two. If only a line total exists, pick it as the line amount and the unit price is derived as amount divided by quantity.
3 invoice rows skipped: no PO number
Those lines have a blank PO cell and cannot be matched to anything. They are not in the results or in the amount at risk, so review them separately as non-PO spend.
Everything shows as Missing PO
The PO numbers are formatted differently between the files (a prefix, leading zeros, spaces). Keep the punctuation and leading-zeros option on and compare a few raw values from each file.

Best practices

  • Run it before the payment run, not after. The output is a hold list, and the amount at risk tells you which holds justify a phone call.
  • Use the same tolerances every run and write them into your AP policy; changing them between months makes exception counts incomparable.

Frequently asked questions

Does it handle a PO line received in several deliveries?

Yes. Receipt rows with the same PO number and SKU are added together and the line carries a note such as 2 receipt rows were added together. Several invoice rows for one line are handled the same way.

What exactly counts as inside tolerance?

Invoiced quantity may differ from received quantity, and exceed ordered quantity, by no more than the larger of the unit and percentage tolerances. Invoice price may differ from PO price by no more than the larger of the amount and percentage tolerances. A difference exactly equal to the limit passes.