U
Useful by Friday
The Monday Test

Excel Remove Duplicate Rows: A Safe, Repeatable Workflow

Excel Remove Duplicate Rows: A Safe, Repeatable Workflow
Excel remove duplicate rows safely with a workflow for choosing columns, preserving records, checking results, and using GPT-6 without blind automation.

When a spreadsheet has repeated customer records, invoice lines, or survey responses, the goal is not simply to delete anything that looks similar. The goal is to remove the right records without losing meaningful differences. I tested the common Excel remove duplicate rows workflow on a small contact export, then checked the result by hand. The built-in tool worked quickly, but only after the columns were chosen carefully.

Start with a copy and define a duplicate

Before you change anything, save a new copy of the workbook. Use a filename such as customer_export_before_cleanup.xlsx, so the original remains available if the result is wrong. Excel's Undo command helps, but it is not a reliable substitute for an untouched source file, especially when several people edit the workbook afterward.

Next, define what duplicate means for this particular sheet. Two rows might be duplicates when every column matches. In another file, the email address may identify a person even when the phone number or company name differs. For an invoice report, the combination of invoice number, line item, and date could be the useful key.

This decision matters because Excel does not understand your business context. It compares the columns you select. If you choose only Email, two contacts sharing a family inbox could be merged even though they represent different customers. If you select every column, small differences in capitalization, spacing, or outdated phone numbers can prevent true duplicates from being removed.

How to use Excel remove duplicate rows

Open the worksheet and click inside the data range. If the range has headers, make sure Excel recognizes them. On the Data tab, choose Remove Duplicates. Excel will display a list of columns with checkboxes. Leave My data has headers selected when the first row contains labels such as Name, Email, or Order ID.

For a strict cleanup, select all columns. This removes rows that match across the entire selected range. For identity-based cleanup, select only the columns that define uniqueness. For example, selecting Customer ID might leave the first occurrence of each customer and remove later rows, even if notes or purchase totals differ.

After you click OK, Excel reports how many duplicate values were found and how many unique values remain. Record those numbers before closing the message. A result of zero duplicates is not automatically reassuring; it may mean that the wrong columns were selected or that the data needs normalization first.

Illustration for excel remove duplicate rows

Here is a practical Excel remove duplicate rows example. Suppose a lead sheet contains 1,240 rows, with columns for name, email, phone, source, and last contact date. If the same email appears four times, selecting only Email keeps the first occurrence and removes the other three. That is useful for a mailing list, but it could discard useful source history. In that case, export the repeated records first or combine the history before deleting anything.

Clean the data before comparing it

Duplicates often hide behind inconsistent formatting. "[email protected]" and "[email protected]" may be treated differently depending on the data and process that created the file. Extra spaces are another common problem. A value copied from a web form can contain a trailing space that is difficult to see but enough to prevent a match.

Use helper columns when the source is messy. The TRIM function removes extra spaces from text, while LOWER converts letters to lowercase. A formula such as =LOWER(TRIM(B2)) can create a normalized email value in a new column. For phone numbers, remove parentheses, spaces, and hyphens in a separate helper field rather than altering the original value immediately.

Do not normalize blindly. An account code may intentionally use capitalization, and two phone numbers can belong to different extensions. Keep the original columns so a reviewer can compare the cleaned key with the source. Once the helper values look correct, run Excel remove duplicate rows using those normalized columns.

Where GPT-6 helps and where it fails

GPT-6 can help explain a cleanup plan, write a formula, or suggest likely matching fields. A useful prompt includes the column names, a few fictional examples, and the rule you want to apply: “I need one row per customer, but I must preserve the newest contact date. Which Excel steps should I use?” That gives the model a real constraint instead of asking it to magically fix a workbook.

In my test, GPT-6 correctly suggested normalizing email addresses and checking the newest date before deleting records. It also produced a formula that needed a small correction because the sample used a different column letter than the real sheet. That is the handoff problem: the response looked polished, but it was not ready to paste without inspection.

Ask for a review checklist rather than permission to delete. GPT-6 can help identify edge cases such as shared inboxes, blank IDs, and records with conflicting customer names. It cannot reliably infer which row your company considers authoritative. That decision belongs to the person who owns the data.

Visual context for excel remove duplicate rows

Verify the result after Excel remove duplicate rows

The cleanup is not finished when Excel displays “duplicate values removed.” First, compare the original row count with the new row count. The difference should match the number Excel reported. Then filter the key column and look for repeated values. A PivotTable can help: place the chosen key in Rows and Values, set Values to Count, and inspect counts greater than one.

Check a sample of deleted records against the remaining rows. If you removed duplicates by Customer ID, confirm that the surviving row contains the correct address, status, or most recent activity. Sorting by date before the cleanup can determine which occurrence remains, but sorting alone does not make Excel preserve the newest record unless the order is correct when the tool runs.

Also inspect blanks. Excel can treat multiple blank key cells as duplicates, which might remove legitimate incomplete records. If blank IDs are possible, filter them separately and decide whether they need enrichment, exclusion, or manual review.

A workflow that holds up next week

For recurring files, turn the process into a short checklist. Save the raw export, create a working copy, identify the unique key, normalize only the fields needed for comparison, and record the starting row count. Run Excel remove duplicate rows, save the cleaned file under a new name, and verify both the count and a sample of deleted records.

If the same work happens every week, Power Query can provide a more repeatable approach than manually selecting a range. It can import the file, trim text, standardize values, and remove duplicates during refresh. That adds setup time, but it reduces the risk of forgetting a step when Monday is busy.

The useful lesson is simple: Excel is good at executing a clear rule, not inventing one. Use GPT-6 to pressure-test the rule and generate helper formulas, then review the actual records yourself. Don’t guess whether it works. Run the result, check the counts, and keep the original file until the cleaned data has passed its real-world test.

Last revised · 2026-11-09 00:11
Letters
Readers Write

No letters yet — be the first to write.

Write a letter
© 2026 Useful by Friday. Useful by Friday