• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

ReviewsLion

Reviews of online services and software

  • Hosting
  • WordPress Themes
  • SEO Tools
  • Domains
  • Other Topics
    • WordPress Plugins
    • Server Tools
    • Developer Tools
    • Online Businesses
    • VPN
    • Content Delivery Networks

How to Find Duplicates in Excel Using Formulas, Conditional Formatting, and Filters

Duplicate records in Excel can quietly distort reports, inflate totals, and create confusion in customer lists, inventory sheets, sales logs, and survey results. A spreadsheet may look clean at first glance, but repeated names, invoice numbers, email addresses, or product IDs can lead to inaccurate decisions. By using formulas, conditional formatting, and filters, a person can quickly identify duplicates and decide whether to review, keep, delete, or merge them.

TLDR: Excel offers several practical ways to find duplicates, including formulas such as COUNTIF, built-in conditional formatting, and filters based on highlighted or flagged rows. For example, if a sales coordinator reviews a file of 5,000 customer orders and even 3% are duplicated, that means 150 records may affect revenue tracking or delivery planning. Conditional formatting is the fastest visual method, while formulas provide more control for complex checks. Filters then help isolate duplicate rows for review or cleanup.

Table of contents:
  • Why Finding Duplicates in Excel Matters
  • Method 1: Find Duplicates with Conditional Formatting
  • Method 2: Use COUNTIF to Identify Duplicates
  • Method 3: Mark Only Later Duplicate Entries
  • Method 4: Find Duplicates Across Multiple Columns
  • Method 5: Use Filters to Review Duplicate Records
  • Filtering by Color After Conditional Formatting
  • Best Practices Before Removing Duplicates
  • Which Method Should Be Used?
  • FAQ
    • Can Excel find duplicates automatically?
    • What is the best formula for finding duplicates in Excel?
    • How can only the second and later duplicate entries be marked?
    • Can duplicates be found across multiple columns?
    • Should duplicates be deleted immediately?

Why Finding Duplicates in Excel Matters

Duplicates are not always errors, but they should almost always be investigated. A repeated customer name may be valid if the customer placed multiple orders, while a repeated invoice number usually signals a problem. Similarly, duplicate email addresses in a mailing list may result in multiple messages being sent to the same contact, which can reduce data quality and affect campaign performance.

Excel provides several ways to detect repeated values. The best method depends on the goal: whether the person wants a fast visual overview, a reusable duplicate-checking column, or a filtered list of only the rows that need attention.

Method 1: Find Duplicates with Conditional Formatting

Conditional formatting is one of the easiest ways to find duplicates because it highlights repeated values automatically. It works well when the person wants to scan a list quickly without adding formulas.

  1. Select the range that should be checked, such as A2:A500.
  2. Go to Home > Conditional Formatting.
  3. Select Highlight Cells Rules > Duplicate Values.
  4. Choose a formatting style, such as red fill or yellow fill.
  5. Click OK.

Excel will highlight all values that appear more than once in the selected range. This is useful for checking product codes, usernames, order numbers, phone numbers, or email addresses.

However, this method has a limitation: it highlights all duplicate instances, including the first occurrence. If the goal is to keep the first entry and mark only the repeated ones, a formula-based method may be better.

Method 2: Use COUNTIF to Identify Duplicates

The COUNTIF formula is a reliable way to flag duplicates in a helper column. It counts how many times a value appears in a range.

For example, if email addresses are in column A, starting in cell A2, the following formula can be entered in B2:

=COUNTIF($A$2:$A$500,A2)>1

This returns TRUE if the value in A2 appears more than once and FALSE if it is unique. The formula can then be copied down the column.

For a more readable result, the formula can be written as:

=IF(COUNTIF($A$2:$A$500,A2)>1,"Duplicate","Unique")

This method is useful because it creates a clear label next to each row. A manager, analyst, or administrator can then filter the helper column to show only records marked as Duplicate.

Method 3: Mark Only Later Duplicate Entries

Sometimes the first occurrence of a value should be treated as the original record, while only later repetitions should be marked as duplicates. In that case, the formula should count values only from the top of the list to the current row.

If the values are in column A, the formula in B2 would be:

=IF(COUNTIF($A$2:A2,A2)>1,"Duplicate","First occurrence")

As the formula is copied downward, Excel expands the counting range row by row. The first time a value appears, it is marked as First occurrence. The second and later times, it is marked as Duplicate.

This approach is especially helpful when cleaning mailing lists, employee records, or transaction exports where one original row should remain untouched.

Method 4: Find Duplicates Across Multiple Columns

In many spreadsheets, duplicates are not based on one column alone. For example, a duplicate may be defined as the same first name, last name, and date of birth. In sales data, a duplicate could mean the same order ID and customer ID.

One practical option is to create a helper column that combines multiple fields. If columns A, B, and C contain first name, last name, and date of birth, the following formula can be used in column D:

=A2&"|"&B2&"|"&C2

Then, COUNTIF can be applied to the combined values:

=IF(COUNTIF($D$2:$D$500,D2)>1,"Duplicate","Unique")

The separator character, such as |, helps prevent accidental matches between combined text values. This method gives more accurate results when duplicates depend on a full record rather than a single value.

Method 5: Use Filters to Review Duplicate Records

After duplicates have been highlighted or labeled, filters make it easier to review only the relevant rows. If a helper column contains Duplicate and Unique labels, the person can turn on filters and display only duplicate records.

  1. Select the header row of the data range.
  2. Go to Data > Filter.
  3. Click the filter arrow in the helper column.
  4. Uncheck everything except Duplicate.
  5. Review the visible records before making changes.

Filtering is important because it reduces the risk of deleting the wrong records. It also allows the person to compare duplicate rows side by side and decide which version is complete, current, or accurate.

Filtering by Color After Conditional Formatting

If duplicates were found using conditional formatting, Excel can also filter by color. This is helpful when no helper formula was added.

  1. Apply duplicate highlighting with conditional formatting.
  2. Turn on filters from the Data tab.
  3. Open the filter menu for the highlighted column.
  4. Choose Filter by Color.
  5. Select the duplicate highlight color.

This displays only the highlighted duplicate values. It is a simple visual workflow for smaller datasets or quick audits.

Best Practices Before Removing Duplicates

Finding duplicates is only the first step. Removing them without review can cause data loss, especially when repeated values are legitimate. Before deleting anything, it is best to follow several precautions:

  • Create a backup: A copied worksheet or saved file version makes recovery easier.
  • Define what counts as a duplicate: One repeated column may not be enough to confirm a duplicate row.
  • Check related columns: Two records may share an email address but contain different order details.
  • Use helper columns: Labels make it easier to audit results before deletion.
  • Sort carefully: Sorting can group duplicates, but it should not break related data across rows.

Excel also has a Remove Duplicates command, but it should be used carefully. It deletes duplicate rows based on selected columns and keeps one instance. For sensitive records, formulas and filters provide a safer review process before removal.

Which Method Should Be Used?

For quick visual inspection, conditional formatting is usually the fastest option. For repeatable workflows, COUNTIF formulas are more flexible. For cleanup and auditing, filters help isolate the exact rows that require attention.

In many cases, the best approach combines all three. Conditional formatting gives immediate visibility, formulas classify the results, and filters allow focused review. This combination helps reduce mistakes and gives the person more confidence before editing or deleting records.

FAQ

Can Excel find duplicates automatically?

Yes. Excel can find duplicates automatically with Conditional Formatting under the Highlight Cells Rules menu. It can also identify them with formulas such as COUNTIF.

What is the best formula for finding duplicates in Excel?

The most common formula is =COUNTIF(range,cell)>1. For example, =COUNTIF($A$2:$A$500,A2)>1 checks whether the value in A2 appears more than once in the selected range.

How can only the second and later duplicate entries be marked?

A running COUNTIF formula can be used, such as =IF COUNTIF($A$2:A2,A2)>1 with the proper IF structure. This marks later duplicates while keeping the first occurrence identified as the original.

Can duplicates be found across multiple columns?

Yes. A helper column can combine values from several columns, and then COUNTIF can check the combined result. This is useful when a duplicate depends on a full record rather than one field.

Should duplicates be deleted immediately?

No. Duplicates should usually be reviewed first. Some repeated values may be valid, so filtering and checking related columns helps prevent accidental data loss.

Filed Under: Blog

Related Posts:

  • vehicle parked in parking lot during daytime ai traffic, data visualization, analytic dashboard
    Creating Radar Charts in Excel
  • black laptop computer gmail email compose formatting toolbar
    How to Disable Plain Text Mode in Gmail and…
  • text plain text editor, browser code, formatting errors
    How to Edit and Clean Up Formatting of Copied Text…

Primary Sidebar

Recent posts

YTDownload Review: Features, Video Downloader Alternatives & Comparison

How to Remove an Email or Google Account from Your iPhone Safely

Level 10 Meeting Guide: EOS Agenda, Templates, Best Practices, and Common Mistakes

How to Create New Folders and Labels in Gmail to Organize Your Inbox

How to Find Duplicates in Excel Using Formulas, Conditional Formatting, and Filters

MDToolbox Overview: Medical Communication Features, Integrations, and Benefits

DealCloud CRM Review: Investment Banking Features, Pricing, and Competitors

SigmaCare Overview: Long-Term Care EHR Features, Pricing, and Alternatives

Kogniz Stock Analysis: Company Status, Funding, Growth, and Market Outlook

Stripe vs PayPal for Enterprise Payment Processing and International Commerce

Footer

WebFactory’s WordPress Plugins

  • UnderConstructionPage
  • WP Reset
  • Google Maps Widget
  • Minimal Coming Soon & Maintenance Mode
  • WP 301 Redirects
  • WP Sticky

Articles you will like

  • 5,000+ Sites that Accept Guest Posts
  • WordPress Maintenance Services Roundup & Comparison
  • What Are the Best Selling WordPress Themes 2019?
  • The Ultimate Guide to WordPress Maintenance for Beginners
  • Ultimate Guide to Creating Redirects in WordPress

Join us

  • Facebook
  • Privacy Policy
  • Contact Us

Affiliate Disclosure: This page may have affiliate links. When you click the link and buy the product or service, I’ll receive a commission.

Copyright © 2026 ยท Reviewslion

  • Facebook
Like every other site, this one uses cookies too. Read the fine print to learn more. By continuing to browse, you agree to our use of cookies.X