How to Find Duplicate Transactions in Excel

Copy the entire T004 row to row 14 to simulate a duplicate import. In I2 count occurrences of each transaction ID, then fill through I14. Inspect the repeated rows before removing the extra copy. Two rows share T004, representing one extra record. Restore the original twelve-row table after the exercise.
By Better Analyst3 min read
On this page

Start with the sample data

This example uses synthetic business data in USD. Download the CSV and import it through Excel’s Data → From Text/CSV. Set dates to Date, amounts to Decimal Number, and identifiers to Text. The examples use Excel for Microsoft 365 on desktop with English formula names and comma separators.

Download the sample CSV · Data dictionary

Keep an untouched copy of the input. These are educational examples, not customer records or measured customer outcomes.

The result to check

Extra repeated transaction IDs: 1 rows

Two rows share T004, representing one extra record. Restore the original twelve-row table after the exercise.

Build the analysis in Excel

1. Prepare the source and scope

Import transactions.csv into a new worksheet with headers in row 1. Leave the source columns in their original order for the formulas below. Review the data dictionary before choosing the reporting period. Keep identifiers as text and convert numeric columns explicitly. Save a working copy so you can return to the original fixture.

2. Build the calculation

Copy the entire T004 row to row 14 to simulate a duplicate import. In I2 count occurrences of each transaction ID, then fill through I14. Inspect the repeated rows before removing the extra copy.

=COUNTIFS($A$2:$A$14,A2)

3. Reconcile and interpret the output

The expected check is extra repeated transaction ids: 1 rows. Two rows share T004, representing one extra record. Restore the original twelve-row table after the exercise. If your result differs, inspect the selected rows, data types and date filters before changing the formula.

4. Adapt the workflow to a recurring report

Replace the sample with a copy of your own source, retaining the same column meanings and units. Extend bounded ranges to include new rows, refresh PivotTables where used, and compare the result to an independent source total. Record the reporting period and any exclusions beside the output. Two equal amounts on the same day are not sufficient evidence of a duplicate.

Checks before using your own data

  • Two equal amounts on the same day are not sufficient evidence of a duplicate.
  • Keep blanks distinct from zero. Investigate missing records rather than hiding errors with a blanket IFERROR formula.
  • Verify results after changing filters, sorting rows or appending a new period. The sample output is a check for this fixture, not a forecast for your business.

Tools and reference guides

Continue with your own data

Explore PDF and bank-statement analysis

See the supported workflow and upload your file when you are ready. The sample is not loaded automatically.