Microsoft Excel Tutorial
How to Highlight Duplicates in Microsoft Excel
Learn how to highlight duplicates in Excel. Discover methods for single & multiple columns, plus unique tips with the UNIQUE function.



In addition to streamlining your data administration procedure, Excel duplicates can be highlighted to guarantee the precision and dependability of your data-driven insights. Let's examine a few reliable techniques for identifying duplicates, giving you the means to greatly improve the quality of your data.
Prerequisites for highlighting duplicates in Excel
Before you begin to highlight duplicates in Excel, it’s vital to prepare your spreadsheet correctly to ensure accurate results. Here are some preparatory steps:
Eliminate Existing Formatting: To prevent potential conflicts, remove any conditional formatting that may have been applied to your cells in the past.
Fix Spacing Issues: Make sure that your entries are free of excessive spaces before and after them. This is because these gaps can make it difficult to identify duplicates.
Exclude Headers from formulae: Be sure that header rows are not included in the selection when creating formulae to indicate duplicates.
Selective Highlighting: You might not always want to draw attention to every duplicate. Make changes to your selections before implementing any rules to prioritize which duplicates to mark.
Use Text Cleaning Functions: To remove extraneous gaps that can make duplication detection difficult, use the TRIM and CLEAN functions.
Top 5 Methods to Highlight Duplicates in Excel
1. Highlight Duplicates in a Single Column
One of the easiest methods to begin finding duplicates is as follows:
Choose the Column: Click on the column (without headers) that you believe has duplicate data.
Apply Conditional Formatting: To apply conditional formatting, select Conditional formatting from the Format menu. Then, under Format Rules, create a new rule by selecting the Custom formula option.
Apply the formula COUNTIF: Input =COUNTIF(A$2:$A, A2)>1 to draw attention to several entries. Based on your data, modify the range A$2:A.
Personalize the Look: Click Done after selecting the color, writing style, and other highlights you want for the duplicates.
The formatting will immediately update to reflect any changes made if duplicates are eliminated using this dynamic method.
2. Highlight Duplicates Across Multiple Columns
Use these procedures to expand the duplicate detection to more than one column:
Describe the Range: Avoid headers and choose the columns you wish to verify.
Use conditional formatting. As with the single column, select Conditional formatting from the Format menu, then create a new rule by selecting the Custom formula option under Format Rules.
Configure rules for conditional formatting: Apply the multiple-columns-adjusted formula =COUNTIF($A$2:$C$100, A2)>1 according to the chosen range.
Format and Use: After completing the configuration and selecting a formatting style for the duplicates, click Done.
3. Identifying Duplicate Rows
A more thorough method is used to highlight entire rows of duplicates:
Choose the Correct Data Range: Emphasize the data range, except the header row.
To apply conditional formatting, select Conditional formatting from the Format menu. Then, under Format Rules, create a new rule by selecting the Custom formula option.
Apply Desired Formatting: Choose the highlighting visual style and apply it to all of the duplicates that have been found.
This technique makes it simpler to identify full-row duplication by concatenating the values from several columns into a single string per row.
Are You Perplexed? Here is a brief description of this approach:
The equation COUNTIF keeps track of the number of times a certain condition is satisfied inside a range.
Concatenating the values in columns A, B, and C for every row is made possible using ARRAYFORMULA, which applies a function to every cell in a range.
$A$2: $A, $B$2: $B, and $C. The ranges in columns A, B, and C that include your data are denoted by $2:$C.
The values in each row of columns A, B, and C are concatenated into a single string using the & operator.
The values in the current row of columns A, B, and C are concatenated into a single string by using the formula $A2&$B2&$C2.
>1 indicates that the combination of values has occurred more than once in the data range by checking if the count of the concatenated strings is more than 1.
4. Using Additional Criteria for Refined Searches
If flagging duplicates according to extra requirements is necessary for your needs:
You can indicate duplicate data in Excel by applying additional criteria. You can configure it, for example, to only detect duplicates for specific values.
Make careful to use the star operator (*) in the COUNTIF function to include this. The complete syntax will look like this:
=(COUNTIF(Range,Criteria)>1) * (Condition 2)
Here is an example:
Implement a formula like =(COUNTIF($A$2:$C$100, $A2)>1)*(COUNTIF($A$2:$C$100, $C2)>1) to use multiple criteria.
This formula checks if both column A and column C in the range from A2 to C100 contain duplicates of the values in the respective rows (row 2 to row 100). If duplicates are found in both columns A and C within the same row, the formula returns TRUE; otherwise, it returns FALSE.
You can refine the formula by adding other conditions or using logical operators to meet specific requirements.
5. Using the UNIQUE Function for Simplicity
The UNIQUE function is particularly useful for smaller data sets:
Just type =UNIQUE(A2:A) in an empty cell within your range to get a list of unique entries.
This approach directly provides you with non-duplicate data, simplifying the process of cleaning up your spreadsheet.
One crucial step in guaranteeing the quality of your data is to highlight duplicates in Excel. You may improve the dependability of your operational data and enable more precise analysis and better business decisions by putting these simple actions into practice.
Say Goodbye To Tedious Data Exports! 🚀
Are you tired of spending hours manually exporting CSVs from different tools and importing them into Excel?
Superjoin is a data connector for Excel that connects your favorite SaaS tools to Excel automatically. You can get data from these platforms into Excel automatically to build reports that update automatically.
Bid farewell to tedious exports and repetitive tasks. With Superjoin, you can add 1 additional day to your week. Try Superjoin for free or schedule a demo.
In addition to streamlining your data administration procedure, Excel duplicates can be highlighted to guarantee the precision and dependability of your data-driven insights. Let's examine a few reliable techniques for identifying duplicates, giving you the means to greatly improve the quality of your data.
Prerequisites for highlighting duplicates in Excel
Before you begin to highlight duplicates in Excel, it’s vital to prepare your spreadsheet correctly to ensure accurate results. Here are some preparatory steps:
Eliminate Existing Formatting: To prevent potential conflicts, remove any conditional formatting that may have been applied to your cells in the past.
Fix Spacing Issues: Make sure that your entries are free of excessive spaces before and after them. This is because these gaps can make it difficult to identify duplicates.
Exclude Headers from formulae: Be sure that header rows are not included in the selection when creating formulae to indicate duplicates.
Selective Highlighting: You might not always want to draw attention to every duplicate. Make changes to your selections before implementing any rules to prioritize which duplicates to mark.
Use Text Cleaning Functions: To remove extraneous gaps that can make duplication detection difficult, use the TRIM and CLEAN functions.
Top 5 Methods to Highlight Duplicates in Excel
1. Highlight Duplicates in a Single Column
One of the easiest methods to begin finding duplicates is as follows:
Choose the Column: Click on the column (without headers) that you believe has duplicate data.
Apply Conditional Formatting: To apply conditional formatting, select Conditional formatting from the Format menu. Then, under Format Rules, create a new rule by selecting the Custom formula option.
Apply the formula COUNTIF: Input =COUNTIF(A$2:$A, A2)>1 to draw attention to several entries. Based on your data, modify the range A$2:A.
Personalize the Look: Click Done after selecting the color, writing style, and other highlights you want for the duplicates.
The formatting will immediately update to reflect any changes made if duplicates are eliminated using this dynamic method.
2. Highlight Duplicates Across Multiple Columns
Use these procedures to expand the duplicate detection to more than one column:
Describe the Range: Avoid headers and choose the columns you wish to verify.
Use conditional formatting. As with the single column, select Conditional formatting from the Format menu, then create a new rule by selecting the Custom formula option under Format Rules.
Configure rules for conditional formatting: Apply the multiple-columns-adjusted formula =COUNTIF($A$2:$C$100, A2)>1 according to the chosen range.
Format and Use: After completing the configuration and selecting a formatting style for the duplicates, click Done.
3. Identifying Duplicate Rows
A more thorough method is used to highlight entire rows of duplicates:
Choose the Correct Data Range: Emphasize the data range, except the header row.
To apply conditional formatting, select Conditional formatting from the Format menu. Then, under Format Rules, create a new rule by selecting the Custom formula option.
Apply Desired Formatting: Choose the highlighting visual style and apply it to all of the duplicates that have been found.
This technique makes it simpler to identify full-row duplication by concatenating the values from several columns into a single string per row.
Are You Perplexed? Here is a brief description of this approach:
The equation COUNTIF keeps track of the number of times a certain condition is satisfied inside a range.
Concatenating the values in columns A, B, and C for every row is made possible using ARRAYFORMULA, which applies a function to every cell in a range.
$A$2: $A, $B$2: $B, and $C. The ranges in columns A, B, and C that include your data are denoted by $2:$C.
The values in each row of columns A, B, and C are concatenated into a single string using the & operator.
The values in the current row of columns A, B, and C are concatenated into a single string by using the formula $A2&$B2&$C2.
>1 indicates that the combination of values has occurred more than once in the data range by checking if the count of the concatenated strings is more than 1.
4. Using Additional Criteria for Refined Searches
If flagging duplicates according to extra requirements is necessary for your needs:
You can indicate duplicate data in Excel by applying additional criteria. You can configure it, for example, to only detect duplicates for specific values.
Make careful to use the star operator (*) in the COUNTIF function to include this. The complete syntax will look like this:
=(COUNTIF(Range,Criteria)>1) * (Condition 2)
Here is an example:
Implement a formula like =(COUNTIF($A$2:$C$100, $A2)>1)*(COUNTIF($A$2:$C$100, $C2)>1) to use multiple criteria.
This formula checks if both column A and column C in the range from A2 to C100 contain duplicates of the values in the respective rows (row 2 to row 100). If duplicates are found in both columns A and C within the same row, the formula returns TRUE; otherwise, it returns FALSE.
You can refine the formula by adding other conditions or using logical operators to meet specific requirements.
5. Using the UNIQUE Function for Simplicity
The UNIQUE function is particularly useful for smaller data sets:
Just type =UNIQUE(A2:A) in an empty cell within your range to get a list of unique entries.
This approach directly provides you with non-duplicate data, simplifying the process of cleaning up your spreadsheet.
One crucial step in guaranteeing the quality of your data is to highlight duplicates in Excel. You may improve the dependability of your operational data and enable more precise analysis and better business decisions by putting these simple actions into practice.
Say Goodbye To Tedious Data Exports! 🚀
Are you tired of spending hours manually exporting CSVs from different tools and importing them into Excel?
Superjoin is a data connector for Excel that connects your favorite SaaS tools to Excel automatically. You can get data from these platforms into Excel automatically to build reports that update automatically.
Bid farewell to tedious exports and repetitive tasks. With Superjoin, you can add 1 additional day to your week. Try Superjoin for free or schedule a demo.
FAQs
Can I highlight only the second or subsequent instances of duplicates, leaving the first instance unhighlighted?
Can I highlight only the second or subsequent instances of duplicates, leaving the first instance unhighlighted?
How can I remove duplicates after highlighting them?
How can I remove duplicates after highlighting them?
Can I highlight duplicates across multiple sheets?
Can I highlight duplicates across multiple sheets?
Automatic Data Pulls
Visual Data Preview
Set Alerts
other related blogs
Try it now