Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Select Duplicates in Excel: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Selecting duplicates in Microsoft Excel is a fundamental data management task that allows you to identify, review, or remove redundant entries from your datasets. Whether you are cleaning up customer lists, merging inventory records, or auditing financial transactions, knowing how to quickly isolate duplicate values saves significant time and prevents errors. The process relies on Excel’s built-in Conditional Formatting feature, which visually highlights cells containing repeated values, making them easy to select for further action.

What You'll Need

  • A computer with Microsoft Excel installed (Desktop version recommended for full functionality).
  • An open Excel workbook containing the data you wish to analyze.
  • Data organized in columns or rows without merged cells in the target range.

Step-by-Step

  1. Open your spreadsheet and select the data range. Click on the first cell of the column or row where you want to find duplicates. Hold down the Shift key and click the last cell of the range, or simply drag your mouse across the cells. If your data is formatted as an Excel Table, you can just click anywhere inside the table, and it will automatically detect the boundaries.
  2. Navigate to the Home tab. Ensure you are on the Home ribbon at the top of the Excel window. This is the default view when opening most spreadsheets.
  3. Click on Conditional Formatting. In the Styles group, locate the button labeled Conditional Formatting. A dropdown menu will appear with various formatting options.
  4. Select Highlight Cells Rules. Hover over Highlight Cells Rules in the dropdown menu. A secondary submenu will expand to the right.
  5. Choose Duplicate Values. Click on Duplicate Values... from the submenu. This opens the "Duplicate Values" dialog box.
  6. Configure the highlighting style. In the dialog box, ensure the left dropdown is set to Duplicate. The right dropdown allows you to choose how the duplicates are highlighted. The default is usually "Light Red Fill with Dark Red Text," but you can select other colors or create a custom format if needed.
  7. Click OK. Once you confirm your settings, all duplicate values within your selected range will be highlighted with the chosen color scheme.
  8. Select the highlighted cells. To physically select only these cells for copying, deleting, or moving, go back to the Home tab. In the Editing group, click Find & Select, then choose Go To Special...
  9. Filter by Cell Color. In the Go To Special dialog box, select the radio button for Cell Color. From the dropdown list below, choose the color you used to highlight the duplicates (e.g., Light Red Fill). Click OK.
  10. Perform your desired action. Now, only the duplicate cells are actively selected. You can press the Delete key to clear their contents, copy them to another location, or apply additional filters.

Common Mistakes

One frequent error is selecting the entire worksheet instead of just the specific column or row containing the data. This can cause Excel to flag unrelated cells that happen to share the same value, leading to confusion. Always narrow your selection to the relevant dataset before applying conditional formatting.

Another common issue involves ignoring case sensitivity. By default, Excel treats "Apple" and "apple" as different values unless you specifically configure the formula or use tools that account for this. If your data contains mixed capitalization, standard duplicate detection might miss them. Additionally, users often forget that trailing spaces can prevent Excel from recognizing duplicates. For example, "John Doe " (with a space) is not considered identical to "John Doe".

Tips

Before running the duplicate check, consider using the TRIM function to remove extra spaces. You can do this by creating a helper column with the formula =TRIM(A1) and dragging it down. Then, run the duplicate check on this new column. This ensures that whitespace differences do not hide true duplicates.

If you need to keep one instance of each duplicate and remove the rest, use the Remove Duplicates tool found under the Data tab. However, be cautious: this tool permanently deletes data. It is wise to save a backup copy of your file before using it, or convert your range into an Excel Table first, as Tables offer more robust undo capabilities.

For complex scenarios where you need to identify duplicates based on multiple columns (e.g., same name AND same email), use the COUNTIFS function. Create a helper column with a formula like =COUNTIFS($A$2:A2,A2,$B$2:B2,B2). Any result greater than 1 indicates a duplicate combination.

Troubleshooting

If the duplicates are not highlighting as expected, check if your data contains formulas rather than static values. Conditional formatting works best on static text or numbers. If your cells contain formulas that return blank strings (""), they might still count as duplicates. Review your source data to ensure consistency.

Sometimes, the selection via "Go To Special" may fail if there are too many cells or if the workbook is very large. In such cases, try filtering the column by color instead. Add a filter to your header row, click the filter arrow, and select "Filter by Color." This visually isolates the duplicates without requiring a direct selection of every single cell.

If you see unexpected highlights, verify that you did not accidentally include headers or footers in your selection range. Headers often contain unique labels, but if a header matches a data point, it will be flagged. Adjust your initial selection to exclude non-data rows.

Frequently Asked Questions

Does selecting duplicates delete them?

No, selecting duplicates does not delete them. It only highlights or selects the cells so you can decide what to do next. You must manually press Delete or use the Remove Duplicates tool to erase the data.

Can I find duplicates across multiple sheets?

Excel’s built-in Conditional Formatting tool works within a single sheet. To find duplicates across multiple sheets, you would typically need to consolidate the data into one sheet first or use Power Query, which offers more advanced data transformation capabilities.

Why are some obvious duplicates not highlighted?

This is often due to hidden characters, such as leading/trailing spaces or non-printable characters. Use the TRIM and CLEAN functions to sanitize your data before checking for duplicates. Also, ensure that the data types match (e.g., numbers stored as text vs. actual numbers).

Is there a keyboard shortcut for this?

There is no direct single-key shortcut to select duplicates. However, you can access the menu quickly by pressing Alt, then H, then O, then M, then U in sequence to navigate to the Duplicate Values option via the ribbon shortcuts.

Can I undo the highlighting after applying it?

Yes, you can easily remove the highlighting. Go to Conditional Formatting > Clear Rules > Clear Rules from Selected Cells. This removes the visual indicator but leaves the data intact.