Excel conditional formatting rule settings for spotting duplicate payment rows
Spotting Duplicate Payment Rows With Conditional Formatting

Double payments, incorrect balances, and time wasted on manual checking — that is the typical cost of duplicate payment rows in a spreadsheet. Conditional formatting can surface those entries for review before you finalize or reconcile anything. Start with the column that holds the most reliable identifier: invoice numbers, transaction IDs, or check numbers. These are more useful for spotting repeats than a date column or a general amount field.
With the column selected, go to the Home tab, open Conditional Formatting, pick Highlight Cells Rules, then Duplicate Values. Excel shades any cell appearing more than once in the selection. That handles cases where every row has a unique reference fairly well, but it will flag anything that repeats, so choosing the wrong column gives you more noise than signal.
Refining the Rule for Partial Matches and Amounts
The basic Duplicate Values rule becomes a problem when payment amounts genuinely repeat — multiple subscriptions at the same price, for instance. It floods the sheet with false alerts. A formula-based conditional formatting rule that checks across more than one column at once sidesteps that. Select the whole data range, go to Conditional Formatting, pick New Rule, then Use a Formula to Determine Which Cells to Format.
Enter something like =COUNTIFS($A:$A,$A1,$B:$B,$B1)>1 where column A holds the payee name and column B holds the amount. That highlights only rows where that specific payee and the same amount occur together elsewhere. Fewer ghost alerts than single-column guessing.
One thing worth knowing before you commit to that formula on a large log: whole-column references like $A:$A and $B:$B make Excel scan all 1,048,576 rows in each column every time the sheet recalculates, which can noticeably slow things down once you’re past a few thousand rows of real data. If your payment log lives inside an Excel Table (Insert → Table), you can reference it by name instead — something like =COUNTIFS(Payments[Payee],[@Payee],Payments[Amount],[@Amount])>1 — which only scans the actual data and automatically extends as new rows get added, so you’re not stuck re-selecting the range every month.
Handling Date and Reference Number Variations
Duplicate payments often misalign by a day or a typo rather than an identical copy. A transaction entered on Monday and again on Tuesday, or an invoice number missing one digit — those can slide right through a basic rule. One way to catch them is adding a helper column where you first normalize the data: strip the reference down to digits only, round dates to the start of the week, or convert the string the same way. Then apply the duplicate-highlighting rule to that helper column instead of the raw data.
For the specific problem of extra spaces or invisible characters sneaking into imported data — a very common source of near-duplicates in payment logs pulled from bank exports — a helper column formula like =TRIM(CLEAN(A1)) strips both regular whitespace and non-printing characters before comparison, which fixes a large share of “these look identical but the rule won’t flag them” cases without you having to eyeball each cell.
If your data has enough near-duplicates that formulas start to feel like a losing battle — the same vendor entered as “ACME Corp,” “Acme Corporation,” and “ACME CORP.”, for instance — Power Query’s Fuzzy Merge feature is built for exactly that: it matches rows based on text similarity rather than an exact match, with an adjustable similarity threshold, and is worth reaching for once helper-column normalization stops being enough.
Used routinely, this approach draws attention to rows that mean the same transaction even if the typing doesn’t match up per character. Review the highlighted rows manually before taking any action. Automated rules cannot always distinguish between a true duplicate and a legitimate separate payment that happens to share similar details.

Checking for Accidental Duplicates Before Finalizing
Run a conditional formatting check on the whole payment log before you close a batch or seal the month. Apply the duplicate rule to the entire payment log, then scroll through the highlighted rows and compare the surrounding details such as dates, payee names, and amounts. This visual scan helps confirm whether each highlighted row is a real duplicate or a coincidental match.
If a confirmed duplicate appears, decide whether to delete the extra row, mark it as void, or flag it for review with a note. A quick sort by the highlighted column after applying the rule can group all potential duplicates together, making the manual review faster and more reliable. Extra spaces, different date formats, or partial reference numbers can cause the rule to miss duplicates, so the color highlight alone is not enough to make the final call.
It’s worth being clear about one distinction here: conditional formatting only highlights — it never deletes or changes anything on its own. Excel’s separate Remove Duplicates command (Data tab → Data Tools → Remove Duplicates) will actually delete matching rows outright, with no highlighting or review step in between. For a payment log specifically, that’s a good reason to stick with conditional formatting rather than Remove Duplicates as your primary method: financial records deserve a human look at each flagged row before anything gets deleted, and Remove Duplicates offers no chance to catch a false positive before the data is gone.
FAQ
Will conditional formatting catch duplicate payments if the amounts are the same but the payee names are slightly different?
No, the basic Duplicate Values rule only checks one column at a time. To catch duplicates with slight name variations, use a formula-based rule with COUNTIFS on both the payee and amount columns, clean the payee names in a helper column first, or use Power Query’s Fuzzy Merge if the name variations are inconsistent enough that exact-match formulas keep missing them.
What should I do if conditional formatting highlights rows that are not actual duplicates?
Check whether the selected column contains values that commonly repeat, such as payment dates or standard amounts. Switch to a multi-column formula rule that compares both the amount and a unique identifier like an invoice number to reduce false positives.
Can I remove the conditional formatting after I finish reviewing the duplicates?
Yes, select the range, go to Conditional Formatting, and choose Clear Rules from Selected Cells or Clear Rules from Entire Sheet. Removing the rules keeps your spreadsheet clean and prevents confusion when new data is added later.