How to highlight duplicate values except first instance in Excel?
When working with large datasets in Microsoft Excel, it is often necessary to identify duplicate values. However, sometimes you may need to highlight only the subsequent occurrences of a duplicate while leaving the first instance unmarked. This guide will show you how to achieve this efficiently using some easy methods.
Highlight duplicate values except first instance with Conditional Formatting
Highlight duplicate values except first instance with Kutools for Excel
Highlight duplicate values except first instance with Conditional Formatting
Conditional Formatting is a built-in Excel feature that allows you to apply formatting rules based on specific conditions. Hereβs how to use it to highlight duplicates except for the first instance:
1. Select the data column that you want to highlight the duplicates except for the first.
2. Click "Home" > "Conditional Formatting" > "New Rule", see screenshot:
3. In the "New Formatting Rule" dialog box, specify the following operations:
- Select "Use a formula to determine which cells to format" option under the "Select a Rule Type" list box;
- Then enter this formula into the "Format values where this formula is true" text box;
=COUNTIF($A$2:$A2, A2)>1
- Click "Format" button.
- COUNTIF($A$2:A2, A2): This counts how many times the value in A2 appears from A2 to the current row.
- > 1: This ensures that only the second and subsequent instances are highlighted, while the first occurrence remains unmarked.
4. In the "Format Cells" dialog box, under the "Fill" tab, specify one color you like to format the duplicates, see screenshot:
5. Then click "OK" > "OK" to close the dialogs, and all the duplicate values in the selected column have been highlighted excepting the first record, see screenshot:
- βοΈ Built-in Excel Feature β No need for external tools or add-ins.
- βοΈ Dynamic Updates β Formatting updates automatically when new data is added.
- βοΈ Customizable β Can be combined with other formulas and formatting options.
- β Complex for Large Datasets β Slows down performance in large Excel files.
- β Limited Customization β Cannot easily select or delete highlighted values in bulk.
- β Requires Manual Formula Entry β Users unfamiliar with Excel formulas may find it challenging.
Highlight duplicate values except first instance with Kutools for Excel
For a faster and more user-friendly way to highlight duplicate values while keeping the first instance unmarked, you can use "Kutools for Excel". Its "Select Duplicate & Unique Cells" utility allows you to effortlessly select or highlight duplicates or unique values based on your preferences.
After installing Kutools for Excel, please do as follows:
1. Select the data column that you want to highlight the duplicates except for the first.
2. Then click "Kutools" > "Select" > "Select Duplicate & Unique Cells", see screenshot:
3. In the "Select Duplicate & Unique Cells" dialog box, configure the following pptions:
- Select "Each row" from the "Based on" section;
- Then, select "Duplicates (Except 1st one)" option under the "Rule" section;
- And then, specify a background or font color you want to format the duplicates under the "Processing of results";
- Finally, click "OK" button.
Result: A prompt box will pop out to remind you how many duplicate cells, excluding the first one, have been selected, and all the duplicate values but first instance are highlighted as well, see screenshot:
- βοΈ Fast and Easy β No need to write formulas; the process is automated.
- βοΈ More Control β Allows users to select, delete, or copy highlighted duplicates.
- βοΈ Efficient for Large Datasets β Works well with thousands of rows without performance issues.
- βοΈ Case-Sensitive Detection β Can identify duplicates while considering differences in uppercase and lowercase letters.
- β Requires Add-in Installation β Kutools is a third-party tool that needs to be installed separately.
Conclusion
Highlighting duplicate values except for the first instance is a valuable skill for data management in Excel. Whether you choose to use Conditional Formatting (a free and flexible method) or Kutools for Excel (a powerful and efficient third-party tool), both methods can help you achieve your goal. Choose the method that best suits your needs. If you're interested in exploring more Excel tips and tricks, our website offers thousands of tutorials to help you master Excel.
Demo: Highlight duplicate values except first instance with Kutools for Excel
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
All Kutools add-ins. One installer
Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.





- All-in-one suite β Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
- One installer, one license β set up in minutes (MSI-ready)
- Works better together β streamlined productivity across Office apps
- 30-day full-featured trial β no registration, no credit card
- Best value β save vs buying individual add-in