Skip to content

Three-Way Match in Excel: A Worked Sheet and Its Formulas

A three-way match in Excel: the order, the receipt and the invoice on one row, with formulas for what to pay now, what is in dispute and a status.

By Koa Sterling. Product specialist at TaroStack and small business owner. Yes, I am a real human, and I actually sit in front of a computer and write these articles. Reviewed November 22, 2026 · 8 min read

A three-way match compares three papers before a supplier is paid: the purchase order (what you agreed to buy, and the price), the receipt (what you counted off the truck) and the invoice (what the supplier is asking for). In Excel it's one row for each line of an order, with all three side by side, and three formulas: the invoiced amount, the amount that can be paid now, and the amount in dispute. A fourth marks the row Pay, Part invoiced or HOLD. Below is the sheet filled in for a made-up bakery's week, each formula, what to do with a held line, and the file.

The short version

  • One row for each line of a purchase order, not one for each invoice.
  • Five numbers typed for each line: ordered, the order's price, received, invoiced, the invoice's price.
  • Pay for the smallest of ordered, received and invoiced, at the lower of the two prices.
  • Whatever the invoice asks beyond that is in dispute until the supplier answers.
  • Pay the part you agree on time. Hold only the difference.
  • TaroStack keeps the order and what arrived against it, line by line. More below.

The sheet, filled in

PO Item Ordered PO price Received Invoiced Invoice price Invoiced amount To pay now In dispute Status
PO-0412 Bread flour, 50 lb bag 40 $21.50 40 40 $21.50 $860.00 $860.00 $0.00 Pay
PO-0412 Butter, 36 lb case 10 $118.00 8 10 $118.00 $1,180.00 $944.00 $236.00 HOLD
PO-0413 Sugar, 50 lb bag 20 $32.00 20 20 $33.50 $670.00 $640.00 $30.00 HOLD
PO-0413 Instant yeast, 1 lb 24 $4.10 24 12 $4.10 $49.20 $49.20 $0.00 Part invoiced
PO-0414 Eggs, 15 dozen case 6 $38.00 7 7 $38.00 $266.00 $228.00 $38.00 HOLD
PO-0415 Chocolate chips, 25 lb case 12 $64.00 12 12 $62.00 $744.00 $744.00 $0.00 Pay

The week's invoices ask for $3,769.20. The sheet says to pay $3,465.20 now and hold $304.00 on three lines.

A last column, Why, takes a sentence for each line that isn't a plain Pay. It's left out of the table here and it's the column you'll read in three weeks.

The formulas

Row 2, with the columns in the order above (A to K):

Column Formula In words
H Invoiced amount =F2*G2 Invoiced × invoice price
I To pay now =MIN(C2,E2,F2)*MIN(D2,G2) The smallest of the three quantities, at the lower price
J In dispute =H2-I2 What the invoice asks beyond that
K Status =IF(OR(F2>E2,G2>D2,E2>C2),"HOLD",IF(F2<E2,"Part invoiced","Pay")) See below

The file's formulas also leave a row blank until its numbers are typed.

Why the smallest quantity. You pay for goods that were ordered, that arrived, and that have been billed. A case that fails any one of the three isn't owed yet.

Why the lower price. A price above the order's is the supplier's to explain. A price below it is theirs to give: the chocolate chips came in at $62.00 against $64.00, and the line is a plain Pay.

What sets HOLD. Any of three things: more invoiced than received, an invoice price above the order's, or more received than ordered.

The four lines that aren't a plain Pay

Butter: billed for 10, 8 arrived. Pay $944.00 for the eight. The $236.00 waits for one of two things: the other two cases, or a credit note. The evidence is the delivery note with "8" written on it and the driver's signature, which is why the count happens at the door. The letter to send is in invoice discrepancy letter.

Sugar: the price moved. $33.50 a bag against an order at $32.00, on 20 bags: $30.00. Pay $640.00 at the order's price and ask. If the supplier did announce a rise and it was missed, the order was wrong, not the invoice: change the PO price, and the line clears. Either way, the next order goes out at a price both sides have seen. What to do when a rise is real is in ingredient price increase.

Yeast: half billed. 24 arrived and 12 are on this invoice. Nothing is wrong. Pay the $49.20, and expect a second invoice for the same amount. Until it comes, those 12 are goods you hold and owe for that nobody has billed: see goods received not invoiced.

Eggs: one case more than ordered. Seven came, seven were billed, six were ordered. The sheet holds $38.00, because nobody agreed to buy the seventh. This bakery decided to keep it. Once that's settled, change Ordered to 7 and the line reads Pay. If you don't want the extra, it goes back or is collected, and the invoice is corrected to six.

Two-way and three-way

Match Compares Catches Misses
Two-way Purchase order and invoice A wrong price, a quantity above the order Goods billed that never arrived
Three-way Purchase order, receipt and invoice Both of those, and short deliveries billed in full Goods that arrived in bad condition, unless the receipt says so

In the example a two-way match passes the butter: ten ordered, ten invoiced, the right price. It takes the count at the door to see that two cases are missing. For a service, such as a cleaning contract or a freight bill, there's no receipt to count and two papers are all you have.

Where the receipt comes from, and how to count a delivery so its numbers can be trusted, is in receiving inventory process. The form the count is written on is a goods received note.

Rules that keep the sheet honest

  • The receipt is typed by whoever counted, from the delivery note they marked, not from the invoice.
  • One row for each order line. An invoice that covers two orders takes two or more rows.
  • A second invoice for the same line means changing Invoiced to the running total, or adding a row. Pick one way and keep to it. A purchase order that arrives in parts has its own sheet: see partial delivery on a purchase order.
  • Small differences. Some businesses let a line through when the difference is a few cents of rounding. If you do, write the amount down as a rule, so it's the same for every supplier.
  • Don't hold the whole invoice for one line. A supplier who's owed $3,465.20 and is waiting on a $30.00 question remembers it.

Get the sheet

Download the three-way match sheet. One sheet and a read-me: the bakery's six lines, with the invoiced amount, the amount to pay now, the amount in dispute and the status worked out as you type, and HOLD lines marked. It's an ordinary Excel file with no macros, and it works in Google Sheets, LibreOffice and Numbers.

Where this stops working

Three people feed this sheet: whoever ordered, whoever counted, and whoever opens the mail. The order's price is retyped from the purchase order, the receipt from a marked-up delivery note that may still be on a clipboard in the back, and the match is only as good as the slowest of them. At six lines a week it works. At sixty, the receipt column is the one that's empty on the day the invoice is due.

How TaroStack does it

TaroStack keeps two of the three papers, and keeps them joined.

The purchase order holds each line's quantity and price, with approval before it's sent.

Receiving is against the order, line by line. What wasn't delivered stays open on the order, so the two cases of butter are still owed next week. Deliveries can be received without an order too.

Lots and dates as it comes in. Each line is received with the supplier's lot and date, and scanning a supplier's GS1-128 case label fills them in.

Price creep by supplier. What each delivery cost goes into the stock's cost, and one report shows each supplier's prices over time.

The job Excel sheet In TaroStack
What was ordered, at what price Retyped from the order On the purchase order
What arrived Retyped from the delivery note Received against the order
What's still owed to you The In dispute column Open lines on the order
A price that keeps rising Noticed, if someone looks Price creep by supplier

TaroStack doesn't match invoices for you, and it isn't an accounting system: it keeps what was ordered and what arrived, for you to hold the invoice against. Purchase orders, receiving, lots and price creep are on every plan, from $9.99 a month. The first 14 days are free, with no credit card. If you'd like a hand setting up, ask, and we'll do it with you.

Questions people also ask

What is a three-way match?

A check made before a supplier's invoice is paid. The purchase order, the record of what was received and the invoice are compared line by line: the quantity and the price. Where they agree, the line is paid. Where they don't, the difference is held until it's explained.

How do you do a three-way match in Excel?

Put each order line on a row with what was ordered, the order's price, what was received, what was invoiced and the invoice's price. The amount to pay is =MIN(ordered, received, invoiced)*MIN(order price, invoice price). The invoiced amount less that is what's in dispute.

What is the difference between a two-way and a three-way match?

A two-way match compares the purchase order with the invoice. A three-way match adds the receipt, so it also catches goods that were billed and never arrived. In the example, the butter passes a two-way match and fails a three-way one.

We use AI to help with the research for these articles. Every one is read, checked against its sources and edited by Koa before it's published. Spot a mistake? Tell us and we'll fix it and say so. How we write these.

Let’s get your stack in order.

Get TaroStack

Sign up now for your free 14 day trial. No credit card required.