How to remove duplicates from multiple columns
Tutor 5 (87 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Removing duplicates from multiple columns means Excel identifies rows where the selected columns contain identical values and deletes every repeated row, leaving the first unique instance in place. To remove duplicates from multiple columns in Excel:
Select the entire data range that contains the columns.
Go to Data on the Ribbon.
Select Remove Duplicates in the Data Tools group.
Choose the specific columns that Excel must check.
Select OK to confirm the removal.
Excel evaluates the selected columns as a single combined key. A row is flagged as a duplicate when all checked columns match another row exactly. Excel removes all but the earliest matching row.
Windows vs. Mac differences
Windows:
The Data tab places Remove Duplicates in the center of the Ribbon.
Keyboard shortcut: Alt + A + M navigates to Remove Duplicates.
Mac:
The Data tab places Remove Duplicates in the Data Tools section with identical iconography.
No dedicated shortcut sequence exists through the Control or Command modifiers for direct access. Manual selection through the Ribbon is required.
How to remove duplicates across all columns at once
To remove duplicates across all columns at once:
Select the full table.
Select Data > Remove Duplicates.
Keep every column checked.
Select OK.
Excel removes rows where every column matches another row.
How to remove duplicates based on a subset of columns
To remove duplicates based on only two or three specific columns:
Highlight the table.
Select Remove Duplicates.
Uncheck the columns you want Excel to ignore.
Select OK.
Excel checks only the selected columns. Unique values in unchecked columns do not protect a row from deletion.
How to keep the original data while removing duplicates
To keep the original data:
Copy the range.
Paste it into a new location.
Run the Remove Duplicates command on the copied version.
This method preserves the source dataset.
How to remove duplicates using Advanced Filter
Advanced Filter creates a unique list without deleting the source data.
Select the columns for filtering.
Go to Data > Advanced.
Choose Copy to another location.
Check Unique records only.
Provide a destination range.
Confirm by selecting OK.
Advanced Filter keeps one representative row for every unique combination.
How to remove duplicates with formulas (without deleting data)
Formulas do not delete duplicates. Formulas identify unique and repeated records so you can filter or extract them.
Step-by-step:
Insert a helper column.
Enter a formula such as COUNTIFS to identify duplicate patterns.
Filter the helper column.
Delete or extract results as needed.
Users normally choose:
=COUNTIFS(A:A, A2, B:B, B2)
Removing duplicates is possible after filtering values with a count greater than 1.
How uniqueness changes with data size
Excel removes duplicates with consistent speed for ranges up to 100,000 rows. Performance shifts after 500,000 rows, where processing time grows by around 30% to 40%. Filtering before using Remove Duplicates reduces the time cost.
How Excel identifies duplicates internally
Excel treats each selected column as part of a composite key. Excel compares:
Data type.
Text string match.
Case-insensitive characters.
Numeric values.
Date serial numbers.
Excel removes any row where the combination repeats an earlier record.
How to avoid accidental data loss
To avoid data loss:
Create a backup sheet.
Validate column selections before confirming.
Sort the dataset before removing duplicates when priority retention matters.
Sorting gives control over which row stays because Excel keeps the first matching row.
How to remove duplicates while keeping the last row
Excel always preserves the first appearance. To keep the last occurrence:
Sort the dataset so the newest row appears first.
Run Remove Duplicates.
Excel keeps the first row in the sorted order.
Sorting reverses the retention order.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to show duplicates in red
Answers · 1
How to apply duplicate conditional formatting rule
Answers · 1
How to duplicate conditional formatting excel
Answers · 1
What is excel conditional formatting duplicates
Answers · 1