Your Ledger Is Off by $372.00 — Find Which Entries Add Up to the Difference

Your Ledger Is Off by $372.00 — Find Which Entries Add Up to the Difference

The week's books should be closed by now. The ledger total and the bank balance are $372.00 apart — not roughly apart, exactly $372.00 — and nobody can say yet which entries explain it. It could be money that never arrived. It could be an entry recorded twice, or three sales that were written into the ledger and never reached the bank. Until the $372.00 is accounted for, the week stays open.

Try the toolFind Items Matching a DifferenceEnter a list of amounts and the difference to explain. The tool finds groups of amounts that add up to that difference.loopyti.com

One caution before the hunt starts: if you have already closed the books or filed for the period, finding an explanation does not mean you can just edit the ledger. Confirm the cause against your receipts and bank statement first, then follow your normal correction process. Everything below is about narrowing the search — the confirmation is a separate step, and it is yours.

The shape of the problem

A gap like this is a sum in hiding. If three entries were recorded in the ledger but never reached the bank, the difference between the ledger total and the bank balance equals exactly those three amounts added together. So the question "which entries explain the gap?" turns into a cleaner one: which subset of this list adds up to exactly 372.00?

That question is easy to state and brutal to answer by eye. A list of 5 entries has 31 non-empty subsets — you can work through those with a calculator and patience. A list of 15 has 32,767. At 40 entries the count passes a trillion. Nobody eyeballs that, and nobody finds the right group by adding pairs and triples at random, because the right group is one subset among thousands and nothing about it looks special.

There is a second trap built into the shape of the problem: more than one subset can hit the same total by pure chance. Repeated amounts make coincidences more likely, not less. So a subset that sums to the difference is a lead, not proof. It becomes the answer only when you check its entries against the bank statement and find them missing — or present, which kills it.

Two cheap checks are worth doing before any subset search, because they can explain a gap without one. A transposed digit (writing 54.00 as 45.00) always produces a difference divisible by 9, so if your gap divides by 9, suspect a transposition first. And scan the list for two special amounts: an entry equal to the whole difference may have been omitted or recorded twice, and an entry equal to exactly half the difference may have been recorded on the wrong side — either one produces a gap of exactly that size on its own.

Ways to hunt for the subset

Adding combinations up by hand with a calculator works when there are five entries. With fifteen, the possible groups run into the thousands, and you will miss the right one long before you find it.

Setting up Excel Solver can do it too. But you have to enable Solver, set up binary variables and a target cell, and know what a constraint is — a real barrier if you have never touched it.

Rechecking every transaction from scratch is the most certain method, and it is also the slowest. Fifteen entries against receipts and a statement takes an afternoon; fifty takes a week. It also answers a bigger question than the one you have — you already know the size of the gap, so most of that rechecking is spent on entries that cannot be part of it.

A subset-sum search is the middle path: hand the list and the difference to something that tries the combinations for you, then check the few candidate groups it returns. The run below uses a free browser tool that does exactly this, but the method is the point — any search that enumerates the subsets honestly will give you the same candidates.

The measured run: 15 amounts, a $372.00 gap, two candidate groups

I made up a week's ledger for a fictional shop, "Maple & Thread" — every name and amount in it is invented — with 15 transactions totalling $1,853.64 and a gap of $372.00 between the ledger total and the bank balance. Before running anything, I checked the sample exhaustively myself: of all 32,767 subsets of the 15 amounts, exactly two add up to 372.00, and no pair of entries does. So I knew in advance what a correct search had to find. Tested 2026-11-15.

I pasted the 15 amounts into the tool, one per line, and typed 372.00 as the difference to find. Plain numbers only — no dollar sign, no commas. When I added a line reading "$1,234.56" the tool stopped with a dialog headed "Check the input" and the message "Check the amount format on this line: 16". If your list lives in a spreadsheet, you can also drop the file in instead: the tool takes an XLSX, XLS, CSV, TSV, or TXT file up to 10 MB.

The tool answered "Search finished. Review the results, then copy or download them." and "Found all 2 matching groups." — both groups I had planted, word for word as it shows them:

  • Group 1 · 84 + 129.5 + 158.5 = 372 — "Original rows: row 1 · row 2 · row 3"
  • Group 2 · 47.25 + 96.75 + 228 = 372 — "Original rows: row 4 · row 5 · row 6"

One small thing to get used to: the tool drops trailing zeros, so 129.50 shows as 129.5 and 228.00 as 228. The sums are exact; only the display is trimmed. The page says the smallest groups come first, and only the first 20 smallest groups are shown — but both of my groups had three entries, so I couldn't verify the ordering from this sample alone.

Fifteen transaction amounts pasted into the tool with 372.00 entered as the difference to find

Candidate groups that add up to exactly 372.00: Group 1 is 84 plus 129.5 plus 158.5, Group 2 is 47.25 plus 96.75 plus 228

Then I checked both groups against the bank statement by hand — the tool can't do that part, and it is the part that decides.

The first group was the real one. Sale 014 ($84.00), Sale 015 ($129.50), and Supply order 07 ($158.50) add up to exactly $372.00 — and none of the three appears in the bank statement for that week. Three entries recorded in the ledger that never reached the bank: that is a lead worth following.

Bank statement check showing the three matching entries are missing from the statement

The second group is the reason you check before you conclude. Sale 016 ($47.25), Sale 017 ($96.75), and Refund 003 ($228.00) also add up to exactly $372.00 — and all three are in the bank statement. If I had stopped at the first matching sum, I would have chased three entries that were never the problem. The search narrows fifteen entries down to two candidate groups; the statement is what separates them. The tool never says which group caused the gap — that decision stays with whoever reads the statement.

Coincidence group ruled out because all three entries appear in the bank statement

The two cheap checks from earlier also ran on this sample, before the search. First, 372 is not divisible by 9 — 3 + 7 + 2 = 12 — so a single transposed digit can't explain this gap on its own. The 54.00 / 45.00 pair in the list, and the 63.00 entry, are the kind of numbers that check points at, but both match the statement at the recorded amounts. Second, Sale 018 is $186.00 — exactly half the difference. If it had been recorded on the wrong side, the gap would be $372.00. It is in the statement for the correct amount, so that possibility is out too. Neither check appears on the tool's screen; they are in the page text under "How to investigate a ledger difference", and they are worth the minute they take.

One more practical detail: the results don't vanish when you close the page unprepared. "Copy results" answers "Results copied.", and "Download text file" saves a 156-byte text file with the groups in it. Mine reads:

Found all 2 matching groups. Group 1 · 84 + 129.5 + 158.5 = 372 (row 1 · row 2 · row 3) Group 2 · 47.25 + 96.75 + 228 = 372 (row 4 · row 5 · row 6)

And the limits worth knowing before you rely on a search like this. The tool searches up to 40 amounts, in groups of up to 5 amounts, for up to 2 seconds by default. Only the first 20 smallest groups are shown, and if the search runs out of time the results may not follow ledger order — so split a long list by week or month and search each period separately. Amounts take up to two decimal places and must be under $10 trillion. Files up to 10 MB and tables up to 50,000 rows are read locally in your browser — the tool says nothing is sent to a server. That note covers files; the pasted amounts themselves carry no such note on screen, so paste amounts only, never account numbers or names.

When no combination matches

A search that comes back empty is not a dead end — it is information, and it points in a specific direction: the entries that explain the gap are not all sitting in your list at their recorded amounts.

The most common reason is a mistyped amount. If one entry was keyed in wrong, the subset that would explain the gap contains a number that isn't in your list, so no subset of the recorded amounts can ever sum to the difference. A transposed digit is the usual suspect — and it leaves a fingerprint: the difference it creates is divisible by 9. If your gap divides by 9 and no group matches, stop searching subsets and start proofreading amounts against the receipts.

The second reason is that the explaining entry is missing from the list entirely. A subset search can only combine what you gave it; an entry that never made it into the paste — a sale recorded in a different week, a fee on a second statement page — cannot be part of any group. The mirror image is a duplicated entry: if the list itself contains the same transaction twice, the gap may be an artefact of the list, not of the books.

The third reason is the difference itself. If the $372.00 was computed from a wrong total — a ledger sum that double-counts a page, a bank balance read from the wrong date — then you are searching for a gap that doesn't exist, and no combination will match because there is nothing to explain.

So work backwards from the empty result: re-check the difference arithmetic first, then proofread the amounts (the divisible-by-9 test tells you where to look), then re-check the list for a missing or duplicated entry. Only when the list, the amounts, and the difference are all confirmed is "no combination matches" telling you the cause lies outside the entries altogether — a bank fee, an unrecorded adjustment — and that is a finding too, because it closes off the entries as suspects.