The quickest answer to how to delete duplicates in excel is to select your entire data table, open Data > Remove Duplicates, choose the columns that define a match, and select OK. Excel keeps the first matching row and removes the others. Make a copy first: the right columns and sort order matter more than the button.
Start with a copy and a definition
Save a separate copy of the workbook before changing anything. Removing duplicate rows can also remove information in columns you didn't use to identify the match. A backup gives you a way to recover it even after closing the file.
Next, decide what a duplicate means for this particular task. Suppose a customer export has Customer ID, Name, Email, and Last Contact Date. If you select only Customer ID, Excel treats rows with the same ID as duplicates even if their contact dates differ. If you select all four columns, those rows are duplicates only when all four selected values match.
Neither choice is automatically correct. For a one-row-per-customer list, ID might be the right key. For a contact history, removing repeated IDs could erase legitimate interactions. Write down the rule before you start: for example, “one row per customer ID, keeping the most recent contact.”
If the newest record should survive, sort the complete table by Last Contact Date from newest to oldest first. Excel retains the first occurrence in the selected range. Make sure dates are recognized as dates rather than text, and check how blank dates are ordered. Sorting only one column separately can scramble records, so expand the selection if Excel asks.

how to delete duplicates in excel step by step
The following workflow uses Excel's built-in Remove Duplicates command. Menu wording can vary a little by version, but the decisions are the same.
- Select a cell inside your data, or select the entire range you want to clean, including every column belonging to each record. Avoid selecting just the ID column when the adjacent names and dates need to stay together.
- Open the Data tab and choose Remove Duplicates. Check the range Excel identifies. If your data has blank rows or columns, explicitly selecting the full range first can help prevent an incomplete selection.
- In the dialog, indicate whether your selection has headers. If the first row contains labels such as Customer ID and Email, make sure the headers option is selected so those labels aren't treated as data.
- Clear the columns that should not determine a match. For the one-row-per-customer example, select Customer ID only. To remove only records that match across every field, select all relevant columns.
- Select OK. Excel reports how many duplicate values were removed and how many unique values remain. Record those counts if you need to explain the change in a handoff.
- Inspect the result against your backup. Check a few IDs that appeared more than once and confirm that the intended row survived. If the result is wrong, undo immediately if possible or return to your saved copy.
An important detail: Excel removes entire rows within the selected range, not just the values in the checked key columns. Columns outside that range may not move with those rows. That's why selecting the complete table is a safety step, not housekeeping.
Preview repeats before removing anything
If you aren't sure which rule to use, flag potential repeats first. Select the Customer ID cells, then choose Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. Pick a format and apply it. You can scan the highlighted IDs and decide whether the repeated entries are errors or legitimate records.
This highlights repeated values in the selected cells; it does not determine whether entire rows match. If you need to compare a combination of fields, a helper formula gives you a more specific check. For example, with email addresses in column C, enter =COUNTIF($C$2:$C$100,C2) in an empty column beside row 2 and fill it down through row 100. A result greater than 1 flags an email that appears more than once in that range.
Adjust the row numbers to cover your actual data. Blank cells may also be counted, so decide separately whether a missing email should qualify as a duplicate. Filtering the helper column for values greater than 1 makes the flagged records easier to review without deleting them.

When matching values still look different
Excel can only compare the values it has, not the meaning you intended. An extra space, a different spelling, or an ID stored as text in one row and as a number in another can prevent a match. Conversely, two people can share a name, so matching on names alone can merge distinct records.
Clean obvious inconsistencies in a copy before rerunning the check. For ordinary extra spaces in a text field, a helper formula such as =TRIM(C2) can remove leading and trailing spaces and reduce repeated internal spaces. Fill it down, review the results, and use the cleaned values as your matching field. TRIM does not remove every kind of invisible character, so a stubborn mismatch may need closer inspection.
Be careful with identifiers that contain leading zeros. Converting them to numbers can change the identifier itself. A ZIP code or account number is usually a label, not a quantity to calculate with; preserve its intended text format and compare it against the source.
Use AI for the rule, not the final decision
For a messy export, an AI assistant can help translate a business rule into a formula or review checklist. Give it column names and a small fictional sample, not customer records. A useful request is: “My columns are Customer ID, Email, and Last Contact Date. Suggest an Excel workflow that flags repeated IDs and keeps the newest dated row. Explain how to handle blanks.”
Treat its answer as a draft. Check that the proposed formula covers the actual rows, that sorting keeps complete records together, and that the surviving row really is the one you wanted. AI can confidently suggest a formula that solves a slightly different problem.
Finally, compare the before and after row counts, spot-check repeated keys, and save the cleaned file under a distinct name. Don’t guess whether it works. Run the result.
No letters yet — be the first to write.