Deduplicate CSV and Excel: keep the first or last record
Rows with the same order ID may contain different information in other columns. Decide which columns define a duplicate and which occurrence should remain before removing records.

How to use this tool
- Add the spreadsheet and choose duplicate key columns.
- Choose first or last occurrence and matching rules for spaces and case.
- Run the task and compare retained rows with the removal report.
- Download the cleaned spreadsheet and report.
Choose the right settings
Select the duplicate key columns and choose whether to retain the first or last occurrence. Ignore spaces or letter case only when those differences do not distinguish legitimate records.
Before you start
Establish the meaning of the input
Before converting or arranging data, identify what a row or value represents and keep a source copy. In tabular files, review headers, separators and text encoding; in structured files, inspect the required object or array shape. Identifiers, dates and amounts should not be interpreted solely from how a spreadsheet happens to display them.
Where the tool offers matching columns, type rules or output fields, choose them according to the destination’s requirements. Test a sample with a blank, a repeated value and a value containing punctuation. For labels, charts or personalized documents, check which column supplies each displayed value and whether the source units and wording are correct.
Define a few checks before processing: an identifier that must retain its spelling, a value with a known interpretation and an expected relationship between records. If the tool offers type conversion or matching rules, distinguish a source value from the program’s display of it. Test ambiguous dates or differently written keys before accepting a broad rule. Keep the chosen rules and destination requirements with the result; this makes a discrepancy traceable to input, interpretation or the requested transformation.
Verify values, structure and exceptions
Reopen or import the result using the destination’s settings. Compare headers, record counts and several values with the source, allowing for the operation you requested. A summary, split or duplicate-removal task can legitimately change the count; verify why it changed rather than expecting every transformation to keep identical rows.
Inspect any exception or validation report before continuing. If columns shift, characters are garbled or a key is not found, check delimiters, encoding and exact header spelling first. Encoding data does not encrypt it, and formatting a value does not confirm its meaning. For printed codes or labels, test the actual output before making the full set.
Example input and output
repeated order keys → retained spreadsheet + removal reportExamples describe the workflow. Results depend on the source file and settings.
Check the saved result before using it
Use original row numbers in the removal report to identify discarded records. Compare the retained amounts, status fields or contact details with the source to confirm they are the ones needed.
If the result is different from what you expected
If legitimate records disappear, check whether the selected key groups unrelated rows together. If duplicates remain, inspect surrounding spaces and letter-case rules before running the cleanup with different options.
Limits to keep in mind
- Records sharing a key may differ elsewhere. Review the removal report. Leading zeros and long codes remain text.
Continue with a related tool
This guide explains the public browser tool. Keep a copy of the original and inspect the result before sharing it.