To see duplicates in Excel, the fastest method is to use Conditional Formatting, which highlights repeated values in a specific color. This allows you to visually identify duplicates without deleting any data. Depending on your version of Excel, menu labels may differ slightly, but the core functionality remains the same across Windows, macOS, and web versions.
What You'll Need
- A computer with Microsoft Excel installed or access to Excel for the Web.
- A dataset containing the columns you wish to check for repeated entries.
Step-by-Step
- Select your data: Click and drag your mouse to highlight the cells, column, or row you want to check for duplicates. To select an entire column, click the letter at the top of the column (e.g., column A).
- Open Conditional Formatting: Navigate to the Home tab on the top ribbon. In the Styles group, click the Conditional Formatting button.
- Choose Highlight Cells Rules: Hover your mouse over Highlight Cells Rules in the dropdown menu. A second menu will appear to the right.
- Select Duplicate Values: Click on Duplicate Values... at the bottom of the Highlight Cells Rules list.
- Choose your formatting: A dialog box will appear. In the first dropdown, ensure "Duplicate" is selected. In the second dropdown, choose the highlight color you prefer (e.g., "Light Red Fill with Dark Red Text").
- Apply the rule: Click OK. All cells containing duplicate values in your selected range will now be highlighted.
- (Optional) Filter by color: If you have a large dataset and want to see only the duplicates, click on the header of your column and go to the Data tab, then click Filter. Click the filter arrow in the column header, select Filter by Color, and choose the highlight color you applied in step 5.
Common Mistakes
- Selecting the entire sheet: Highlighting every single cell in a workbook before applying conditional formatting can slow down your computer or cause Excel to freeze if the dataset is massive. Only select the specific columns or ranges that need checking.
- Ignoring leading/trailing spaces: Excel treats "Apple" and "Apple " (with a space at the end) as two different values. If you suspect duplicates exist but they aren't being highlighted, check for hidden spaces.
- Confusing "Seeing" with "Removing": Conditional Formatting only shows you the duplicates. It does not delete them. To delete them, you must use the "Remove Duplicates" tool found under the Data tab.
- Case sensitivity: By default, Excel's duplicate highlighting is not case-sensitive. "TEXT" and "text" will be flagged as duplicates.
Tips
- Use a Helper Column: If you need to find duplicates based on multiple criteria (e.g., where both the First Name AND Last Name are the same), create a new column and use a formula like
=A2&B2to combine the data, then apply the duplicate highlight to that combined column. - Clear Formatting: Once you have finished identifying and fixing your duplicates, you can remove the colors by going to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells.
- Quick Sort: After highlighting duplicates, sort the column (A-Z). This groups all highlighted cells together, making it easier to review them manually.
Troubleshooting
If the duplicate values are not appearing as expected, try these steps in order:
- Check for hidden characters: Use the
=TRIM()function in a separate column to remove extra spaces from your data, then run the duplicate check on the trimmed results. - Verify Data Types: Ensure the data is consistent. If one cell is formatted as "Text" and another as "Number," Excel may not recognize them as duplicates even if they look identical.
- Check for existing rules: If the cells are already colored, the new conditional formatting might be obscured. Clear all existing formatting from the range before applying the duplicate rule.
- Update Excel: If the Conditional Formatting menu is missing or behaving erratically, ensure your software is updated to the latest version.
Frequently Asked Questions
Can I highlight only the second or third occurrence of a duplicate?
No, the built-in "Duplicate Values" tool highlights every instance of the value. To highlight only the subsequent occurrences, you would need to use a custom formula in Conditional Formatting, such as =COUNTIF($A$1:A1, A1)>1.
Does this work on Excel for Mac?
Yes, the process is nearly identical on macOS. Navigate to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
Will highlighting duplicates slow down my spreadsheet?
In very large spreadsheets (tens of thousands of rows), conditional formatting can impact performance because Excel recalculates the formatting every time a change is made. For massive datasets, consider using a Pivot Table to count occurrences instead.
How do I see duplicates across two different columns?
Select both columns simultaneously before clicking "Duplicate Values." Excel will then highlight any value that appears more than once anywhere within that combined selection.
Can I use a formula instead of the menu?
Yes. You can use the =COUNTIF(range, criteria) formula in a helper column. If the result is greater than 1, the value is a duplicate.