How to Highlight Duplicates in Excel

10.10.2023

Olya  M.

Author's articles: 11

How to Highlight Duplicates in Excel

In today's data-driven world, Excel is a crucial tool for managing and analyzing information. Whether you're a seasoned Excel pro or just getting started, one common task you'll encounter is identifying and dealing with duplicates in your spreadsheet. Duplicates can skew your data analysis and lead to inaccuracies, so it's essential to know how to find and highlight them effectively. In this guide, you are going to explore several methods that`ll help you highlight duplicates in Excel.

How to Find Duplicates in Excel

Before you can highlight duplicates in Excel, you need to know how to find them. Excel provides several methods to locate duplicate values within your dataset. Here's a step-by-step guide on how to find duplicates in Excel:

  1. Select Your Data: Start by selecting the range of cells or the entire column where you suspect duplicates might exist.
  2. Data Tab: Navigate to the "Data" tab on the Excel ribbon. This tab contains essential data-related functions.
  3. Remove Duplicates: Look for the "Remove Duplicates" button, usually located under the "Data Tools" section. Click on it to open the "Remove Duplicates" dialogue box.
  4. Choose Columns: In the dialogue box, you'll see a list of columns from your selected data range. By default, all columns are selected. Select any columns where you don't want to find duplicates.
  5. Find Duplicates: Ensure that the "My data has headers" option is selected if your data has column headers. Then, click "OK." Excel will scan the selected columns for duplicate values and remove them if you choose to do so. 
  6. Review Duplicate Values: After clicking "OK," Excel will display a message telling you how many duplicate values were found. You can scroll through your dataset to identify and review these duplicates.

Now that you know how to find duplicates, let's explore how to highlight them for better visibility.

Read more: How To Learn HTML

How to Highlight Duplicates in Excel

Find a tutor for subjects

Find a tutor

How to Highlight Duplicates in Excel

Highlighting duplicates in Excel can make it easier to spot and work with these redundant values in your dataset. Excel's conditional formatting feature is the ideal tool for this task. Here's a detailed guide on how to highlight duplicates in Excel using conditional formatting:

  1. Select Your Data: Begin by selecting the range of cells or the entire column where you've identified duplicates or want to find them.
  2. Conditional Formatting: Go to the "Home" tab on the Excel ribbon, and under the "Styles" group, click on "Conditional Formatting".
  3. Highlight Cells Rules: From the dropdown menu that appears, select "Duplicate Values". A dialogue box will appear, allowing you to customize how duplicates are highlighted.
  4. Customize Formatting: In the "Duplicate Values" dialogue box, you can customize the formatting for duplicate values. Choose options such as font color, cell background color, and even icon sets to make the duplicates stand out.
  5. Apply Formatting: Click "OK" in the dialogue box after configuring your formatting preferences. Excel will instantly apply the selected formatting to all duplicate values within your selected range.
  6. Review Highlighted Duplicates: Now, you can easily see which values in your dataset are duplicates. They will be highlighted according to the formatting you specified.

Using Conditional Formatting in Excel

Conditional formatting is a powerful feature in Excel that allows you to format cells based on specific conditions. Follow these steps to do it: 

  1. Select the Range: First, select the range of cells where you want to identify duplicates.
  2. Conditional Formatting: Go to the "Home" tab on the Excel ribbon and click on "Conditional Formatting."
  3. Highlight Cell Rules: From the dropdown menu, choose "Highlight Cells Rules".
  4. Duplicate Values: Select "Duplicate Values" from the submenu.
  5. Set Formatting: A dialogue box will appear. Here, you can choose the formatting options for the duplicate values, such as font color, background color, or icon style.
  6. Apply: Click "OK" to apply the formatting. Excel will highlight all the duplicate values in the selected range.

How to Highlight Duplicates in Excel

Using the COUNTIF Function in Excel

Another method to identify duplicates in Excel is by using the COUNTIF function. This function counts the number of times a specific value appears in a range. Here's how you can use it:

  1. Insert a New Column: Insert a new column next to your data. This column will display the count of each value.
  2. Use COUNTIF: In the first cell of the new column, enter the formula =COUNTIF(A:A, A1), assuming your data is in column A. This formula counts how many times the value in cell A1 appears in the entire column A.
  3. Fill Down: Drag the fill handle (a small square at the bottom-right) down to apply the formula to all cells in the new column.
  4. Filter and Highlight: Filter the new column to show values greater than 1. These are your duplicate values. You can then apply conditional formatting to the filtered cells to highlight them.

Working with the IF Formula in Excel

The IF formula in Excel is a versatile tool that allows you to perform conditional actions based on specified criteria. While it's not primarily designed for finding duplicates, you can use it to create custom logic to highlight duplicates. 

  1. Insert a New Column: As before, insert a new column next to your data.
  2. Use IF Formula: In the first cell of the new column, enter a formula like =IF(COUNTIF(A:A, A1)>1, "Duplicate", "Unique"). This formula checks if the value in cell A1 appears more than once in column A and labels it accordingly.
  3. Fill Down: Drag the fill handle down to apply the formula to all cells in the new column.
  4. Conditional Formatting: You can then apply conditional formatting to the cells labeled as "Duplicate" to highlight them.

How to Highlight Duplicates in Excel

Using the SEARCH Function in Excel

The SEARCH function in Excel is handy when finding a specific substring within a text string. While it may not directly help you find duplicates, it can assist in data cleaning and manipulation. For instance, you can use the SEARCH function to search for specific keywords or phrases within a cell's content.

In conclusion, Excel offers various methods for identifying and highlighting duplicates, each with its advantages. Whether you prefer using conditional formatting, COUNTIF, IF formulas, or other functions, mastering these techniques will make your data analysis more efficient and accurate.

Remember that UpskillsTutor is an excellent resource to enhance your Excel skills further. You can find a tutor specializing in Excel to help you explore these techniques in more detail and improve your proficiency. Happy Excel-ing!

Read more: 10 Common Strengths and Weaknesses to Discuss in Job Interviews

Did you like the article? Rate it

5

Based on reviews from 1 users

Olya  M.

Author Olya M.

I received the Bachelor's degree in Foreign Languages with honours at Ivan Franko National University of Lviv.

Author's articles: 11

Choose a tutor

How to Highlight Duplicates in Excel

How to Find Duplicates in Excel?

Select Your Data: Start by selecting the range of cells or the entire column where you suspect duplicates might exist. Read more on UpskillsTutor

How to Highlight Duplicates in Excel?

Select Your Data: Begin by selecting the range of cells or the entire column where you've identified duplicates or want to find them. Read more on UpskillsTutor

Any advanced tips for highlighting duplicates in large datasets?

Using the COUNTIF Function in Excel Another method to identify duplicates in Excel is by using the COUNTIF function. This function counts the number of times a specific value appears in a range. Here's how you can use it: Read more on UpskillsTutor

Other news:

UpskillsTutor

A platform that connects tutors and students

Create a tutor profile

Expert articles from tutors