We tested it · 8 min read
We hid 25 duplicate payments in 10,000 rows. Neither free AI got it all right
১০,০০০ পেমেন্টে লুকানো ২৫টি দ্বৈত পেমেন্ট: চ্যাটজিপিটি বনাম জেমিনাই
We planted 25 duplicate supplier payments in a 10,000-row Excel file and asked free ChatGPT and Gemini to find them. The results, and an Excel check to copy.
Paying the same invoice twice is one of the commonest leaks in accounts payable, and one of the first things an auditor looks for. So we built a test: a made-up company’s 10,000 supplier payments for a year, with 25 duplicate payments hidden inside, worth Tk 17,21,078.
Some were easy: exact repeats. Others were the kind people really miss: an invoice number typed differently, the same supplier set up twice, two digits of an amount swapped. We gave the file to the free versions of ChatGPT and Gemini with one simple prompt.
What we hid
| Kind of duplicate | Pairs | Example | Paid twice (Tk) |
|---|---|---|---|
| Exact repeat: same supplier, invoice, date and amount | 10 | Invoice HPH/300 paid twice to Haque Paper House Ltd | 12,14,991 |
| Invoice number typed differently | 6 | CC/185 and CC-185; 00587 and 587 | 2,27,611 |
| Same supplier set up twice: new supplier ID, name typed differently, same bank account | 5 | “Mia Electricals” and “Mia Electricalss” | 1,20,262 |
| Two digits of the amount swapped | 4 | Tk 99,565, then Tk 99,655 for the same invoice | 1,58,214 |
| Total | 25 | 17,21,078 |
The attached Excel file has 10,000 supplier payments made by a company in one year. Find payments that look like duplicates (the same invoice paid more than once). List each suspected pair with both Payment IDs, the supplier, the invoice number and the amount, and give the total amount paid twice. Explain briefly how you checked, and say how sure you are about each pair.
We also put in decoys: monthly rent to two landlords and a monthly software fee, the same supplier and amount every month. They are not duplicates, and a careless check flags them.
The scorecard
| ChatGPT (free) | Gemini (free) | |
|---|---|---|
| Prompts needed | 1 | 3: it first said it could not open the file, and the second reply broke off with an error |
| Exact repeats (10) | 10 | 10 |
| Invoice number typed differently (6) | 4 | 6 |
| Same supplier set up twice (5) | 0 | 5 |
| Swapped digits (4) | 4 | 4 |
| Pairs found (of 25) | 18 | 25 |
| False alarms | 0 | 0 |
| Total paid twice (right answer: Tk 17,21,078) | Tk 14,79,580: exactly right for the 18 pairs it found | Tk 17,81,078 and Tk 17,51,073, in the same answer: both wrong |
Neither got the whole job right, and they failed in opposite ways. ChatGPT added up correctly, but its matching rules were too narrow. Gemini matched everything, but did the adding in its head.
ChatGPT: careful code, narrow rules
ChatGPT ran Python on the file in its first reply, and its code shows exactly why it missed 7 pairs.
- Leading zeros. It cleaned invoice numbers by removing dashes, slashes and spaces, which caught CC/185 and CC-185. But it kept leading zeros, so 00587 and 587 stayed different. Two pairs missed.
- One supplier, two records. It only compared payments within the same supplier ID, so a duplicate paid to a second record for the same supplier was never compared. It looked at bank account numbers only for pairs it had already found. All five missed.
- The total was right. Its Tk 14,79,580 was added up in code and is exactly right for its 18 pairs. It missed Tk 2,41,498 of duplicates, but the figures it gave were sound.
- It flagged none of the rent or software decoys, and it rated the four swapped-digit pairs “Medium” confidence, which is fair.
Gemini: found all 25, then got the total wrong
Gemini’s first reply said it could not inspect the file because it had no data analysis tool available. Instead it explained how to check for duplicates yourself. Its sample Python used column names that are not in our file, and the Excel rule it suggested (same supplier and amount within 30 days) flags 37 pairs on our file: 16 real duplicates and 21 false alarms, 14 of them the monthly rent and software fee.
After a follow-up asking it to open the file, it did run Python, but the reply broke off with an error. Sent again, it produced a full answer: all 25 pairs, no false alarms. On finding duplicates, it beat ChatGPT.
But none of its code added anything up: every subtotal was written by the model itself. Its subtotal for the exact repeats was Tk 1,274,991, Tk 60,000 too much (the right figure is Tk 12,14,991). The grand total at the bottom said Tk 1,781,078. The first sentence of the same answer said Tk 1,751,073. The right answer is Tk 17,21,078.
The Excel check that found all 25
The trick is choosing what to match on. A supplier can have two IDs and two spellings, and an amount can be mistyped, but the bank account and the invoice number rarely change. So: clean the invoice number, join it to the bank account, and count. Open our file, put these in columns L to O of the Payments sheet, and fill them down to row 10,001.
L2 Clean invoice: no dashes, slashes or spaces; leading zeros dropped from all-number invoices =IFERROR(TEXT(VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(UPPER(F2),"-",""),"/","")," ","")),"0"),SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(UPPER(F2),"-",""),"/","")," ","")) M2 Match key: bank account (last 4) + clean invoice =E2&"|"&L2 N2 Times seen =COUNTIF($M$2:$M$10001,M2) O2 Paid again: the amount of every repeat after the first =IF(COUNTIF($M$2:M2,M2)>1,H2,0) Anywhere else, the two answers: =COUNTIF(N2:N10001,">1") rows flagged =SUM(O2:O10001) total paid twice (Tk)
On our file this flags exactly 50 rows (25 pairs) with no false alarms, and column O adds up to Tk 17,21,078: the right answer, first time. The rent and software decoys don’t trip it, because each month has a new invoice number, and the swapped-digit pairs are caught because the amount isn’t part of the key.
It isn’t perfect. It would miss a duplicate paid into a different bank account, or an invoice number with a mistyped letter. Real audits run several checks; this is a strong first one, and every step of it can be seen and checked.
How to use AI for a duplicate check
- Ask for the method, not just the answer. ChatGPT’s rules were visible in its code, which is how we could see why it missed 7 pairs.
- Test the rules on the hard cases: leading zeros, punctuation in invoice numbers, the same supplier set up twice, mistyped amounts.
- Never trust a total you can’t trace. If the AI didn’t add it up in code, paste its list into Excel and use
=SUM. - Watch for decoys. Rent, retainers and subscriptions repeat every month. They are not duplicates.
- Keep real data out of free AI tools. Supplier names, invoices and bank accounts are confidential. Practise on our made-up file.