Supplier Invoice Reconciliation
An Excel tool that cleans a messy accounts-payable ledger and bank statement with formulas, then matches every invoice to its payment. On a fictional furniture maker's Q1 data it finds $10,565 paid twice, $31,340 of unpaid invoices and 30 late payments.

The problem
Month-end reconciliation is everyday finance work, and it usually starts with messy exports. In this case, Harbor & Pine Furniture (a fictional manufacturer) has two Q1 2025 files:
- AP ledger export (201 rows): dates in four formats (some real dates, some text like
03/02/2025,2025-02-03,3 Feb 2025,Feb 3, 2025), amounts stored as text ($1,234.50,USD 1,234.50), supplier names typed many ways (OAKWOOD TIMBER LTD.,Oakwood Timber Limited, extra spaces), invoice IDs likeinv-10234,INV 10234,Inv_10234, and 5 duplicate rows. - Bank statement (195 lines): the invoice number is buried in free text:
FASTPAY OAKWOOD TIMBER LTD INV10234,BACS/INV-10236/OAKWOOD,Transfer inv 10237 ….
The goal is to find out which invoices were paid correctly, which weren’t, and what needs action.
How it works
Clean Ledger: one formula per problem, copied down:
- Invoice ID: strip spaces, hyphens and underscores, then rebuild as
INV-#####withTEXTAFTER. - Supplier: upper-case, remove punctuation, turn
LIMITEDintoLTD, thenXLOOKUPagainst a supplier master whose key is built the same way, so every variant lands on the official name. - Date: a
LETformula that leaves real dates alone, parses ISO and UK text dates withDATE/MID, and handles month-name dates withTEXTSPLIT+MATCH. - Amount: remove
$,USDand commas, thenNUMBERVALUE(locale-safe). - Duplicate flag: a running
COUNTIFSkeeps the first copy and flags the rest. - Audit columns: flags show exactly which rows each fix touched.
Clean Bank: SEARCH finds “INV” anywhere in the description and pulls out the 5-digit reference.
Reconciliation: one row per unique invoice; every column is a single spilled formula. Bank amount (SUMIFS) and payment count (COUNTIFS) by invoice reference, paid date (XLOOKUP), due date from supplier terms, difference, days late, and a status from IFS: Matched, Amount mismatch, Paid twice or Missing in bank. A second spill lists bank payments with no ledger invoice.

What’s in the workbook
Summary: six KPIs, the result by status with ledger vs bank values, a table of what the cleaning fixed, and the 12 largest exceptions with a suggested action for each.
Clean Ledger / Clean Bank: the cleaned data with fix flags.

Raw Ledger / Raw Bank: the files as received, left untouched.

Key findings
- 87.2% of invoices match exactly (171 of 196).
- 3 invoices were paid twice: $10,565 to recover from suppliers.
- 9 invoices are missing from the bank: $31,340 either unpaid or awaiting approval.
- 13 amount mismatches net to −$739 (short payments or keying errors; check remittances and credit notes).
- 5 bank payments have no ledger invoice ($9,088), and 2 of them carry no invoice reference at all.
- 30 invoices were paid after their due date, on average 14 days late.
Checking it
The test data was generated with a known answer for every invoice. The workbook finds all of them: 171 matched, 13 mismatched, 3 paid twice, 9 missing, 5 bank-only and 30 late. None of the 201 ledger rows failed to clean.
📊 Download the workbook (.xlsx). It needs Excel for Microsoft 365 or Excel 2024.