Are you working with large datasets in Excel and struggling to identify duplicates between two columns? You're not alone. Duplicates can skew your analysis and lead to inaccurate results. In this guide, we'll walk you through a simple yet powerful method to highlight duplicates between two columns, using Excel's built-in features and a bit of Conditional Formatting magic.
Understanding Duplicates in Excel
Before we dive into the steps, let's clarify what we mean by "duplicates". In this context, duplicates refer to values that appear in both of your columns. For example, consider the following data:
| Column A | Column B |
|---|---|
| Apple | Banana |
| Banana | Cherry |
| Apple | Date |
| Elderberry | Elderberry |
In this case, "Apple" and "Elderberry" are duplicates because they appear in both columns.

Preparing Your Data
Before you start, ensure your data is clean and formatted consistently. Remove any blank cells and ensure there are no leading or trailing spaces in your data. This will help you identify duplicates accurately.
Sorting Your Data
Sorting your data can make it easier to spot duplicates. Here's how:
- Select any cell in your data range.
- Go to the "Data" tab, then click on "Sort & Filter".
- Choose "Sort by" and select the first column, then click "OK".
- Repeat the process for the second column.
Your data should now be sorted alphabetically, making duplicates more visible.

Highlighting Duplicates with Conditional Formatting
Now, let's use Conditional Formatting to highlight duplicates. Here's how:
Step 1: Select Your Data
Select the range of cells in Column B that you want to check for duplicates.
Step 2: Apply Conditional Formatting
Go to the "Home" tab, then click on "Conditional Formatting" in the "Styles" group. Select "New Rule..." from the dropdown menu.

Step 3: Set Up the Rule
In the "New Formatting Rule" dialog box, select "Use a formula to determine which cells to format". In the "Format values where this formula is true:" box, enter the following formula:
`=COUNTIF($A$1:$A$10, B1)>1`
Replace "$A$1:$A$10" with the actual range of cells in Column A that you're checking. This formula counts the number of times the value in Column B appears in Column A. If the count is greater than 1, the cell is formatted.
Step 4: Choose a Format
Click the "Format" button to choose the formatting you want to apply to the duplicates. You can fill the cells with a color, add a border, or change the font color. Once you've chosen your format, click "OK".
Step 5: Name and Apply the Rule
In the "New Formatting Rule" dialog box, you can give your rule a name. This is useful if you want to apply the same formatting to other cells in the future. Click "OK" to apply the rule.
Now, the cells in Column B that contain duplicates should be formatted according to the rule you've set. This makes it easy to spot duplicates at a glance, helping you clean up your data and ensure accurate analysis.
Dealing with Duplicates
Once you've identified duplicates, you can decide how to deal with them. You might choose to remove them, merge them, or keep them as separate entries. The method you choose will depend on the nature of your data and the analysis you're performing.
Remember, highlighting duplicates is just the first step. It's important to understand the context of your data and make informed decisions about how to handle duplicates.
Conclusion
Highlighting duplicates between two columns in Excel is a powerful way to clean up your data and ensure accurate analysis. By using Conditional Formatting and a simple formula, you can quickly and easily identify duplicates, making your data work harder for you.












![How to Highlight a Column in Excel? [Window 10 & 11 Guide] - MiniTool Partition Wizard](https://i.pinimg.com/originals/62/21/fe/6221fe089a3e2712132f93dfd57453bb.png)









