How to Display Duplicates in Excel: Step-by-Step
In this article
To display duplicates in Excel, use Conditional Formatting > Highlight Cells Rules > Duplicate Values, or enter a formula in a helper column such as =COUNTIF($A$2:$A$500,A2)>1. The first highlights every repeated entry in place; the second gives you a filterable TRUE/FALSE flag. Both methods take under a minute on a typical list and neither alters your original data. Before you start, know which column (or combination of columns) defines a duplicate, and work on a copy of important sheets, because the next sections deliberately show you how to delete rows.
What You'll Need
- Excel for Microsoft 365, Excel 2021, Excel 2019, Excel 2016, or Excel for Mac. Excel for the web also supports conditional formatting, COUNTIF and Remove Duplicates.
- A list with a clear header row, so that Excel does not treat your column titles as data.
- A backup copy of the workbook if you plan to delete anything. Copy the sheet with right-click on the tab > Move or Copy > Create a copy.
- Two minutes to decide what a duplicate means in your data: an identical whole row, an identical value in one column, or a combination such as First Name + Last Name.
One note on wording: menu labels can differ slightly by Excel version, platform and region. If a name below does not match exactly what you see, look for the nearest equivalent, for example "Conditional Formatting" instead of "Conditional Formatting Rules" or vice versa.
Step-by-Step
- Select the data you want to check. Click in your list and press Ctrl+A (Cmd+A on Mac) to select the current region, or drag over the cells yourself. Include the header row if you want Excel to keep it out of the count. If you select only a part of the range, conditional formatting will still work, but the rule will not follow new rows added later unless you use a full-column range.
- Highlight duplicates with conditional formatting. Go to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. A small dialog appears asking you to format cells that contain duplicate (or unique) values. Leave the default red fill unless you need something printable in black and white.
- Confirm and inspect. Click OK. Every value that appears more than once in the selected range turns red. Excel compares the value in each cell against the whole selected range, so a value appearing three times will show all three cells highlighted, not just the second and third.
- Restrict the check to one column when needed. If your sheet has separate First Name and Last Name columns, selecting both will flag everyone whose first name matches anyone else's and everyone whose surname matches anyone else's, which is rarely what you want. Select only the column that should be unique, such as an email address or order number, and apply the rule to that column alone.
- Combine columns for multi-field duplicates. To treat "John Smith" and "John Smith" in two separate columns as one duplicate, add a helper column. In an empty column beside the data, type
=A2&" "&B2(adjust the cell references) and fill it down by double-clicking the fill handle. Then apply Duplicate Values to that helper column. Concatenating with a separator such as a space or a pipe character prevents false matches between values like "Ann" + "Lee" and "Anne" + "Lee". - Or use a formula flag instead of colour. In a helper column, type
=COUNTIF($A$2:$A$1000,A2)>1. This returns TRUE for any value that appears more than once in the range A2:A1000 and FALSE for everything else. The dollar signs lock the range so it does not shift as you fill the formula down. - Turn on filters and show only duplicates. Select your header row and go to Data > Filter. Click the filter arrow on the helper column and tick only TRUE. You now see just the duplicated records, wherever they sit in the list. Filtering hides rows rather than deleting them, so your data stays intact.
- Count how many times each value repeats. Change the formula to
=COUNTIF($A$2:$A$1000,A2)without the comparison. Each row then shows 1 for a unique entry, 2 for a pair, 3 for a triple, and so on. This is the fastest way to see whether you have one accidental repeat or a genuine many-to-one problem. - Mark the first occurrence only. If you need to keep one copy and flag only the later ones, use
=COUNTIF($A$2:A2,A2)>1. Because the range grows as it is filled down, the first appearance of a value returns FALSE and every subsequent copy returns TRUE, which makes it easy to delete the later rows and keep the original. - Remove duplicates once you have reviewed them. Select the whole range including headers, go to Data > Remove Duplicates, tick the columns that should be unique, and click OK. Excel reports how many values were removed and how many remain. This action is permanent, which is why you made a copy first. Undo (Ctrl+Z) usually restores the rows, but not always reliably on large sheets.
Common Mistakes
- Trailing spaces and inconsistent capitalisation. Excel's duplicate tools ignore case, so "apple" and "Apple" count as duplicates, but "apple" and "apple " (with a space) do not. Clean the data with
=TRIM(A2)in a helper column and duplicate-check that instead. - Selecting the wrong range. Conditional formatting applied to a two-cell selection will only ever flag repeats inside those two cells. Always check the range shown in the Manage Rules dialog.
- Formatting numbers stored as text. A value entered as text "00123" and a number 123 look similar but are not treated as the same value. Use Text to Columns or re-enter the data with consistent types.
- Applying the rule to a list without headers. Excel may include the header text in the comparison, which is harmless but confusing, and structured references in formulas will misbehave.
- Deleting before reviewing. Remove Duplicates deletes whole duplicate rows based on the columns you tick. If you tick only the email column, Excel removes the second row entirely, taking its other data with it.
Tips
- Convert your range to a table with Ctrl+T. Conditional formatting rules and formulas then expand automatically as new rows are typed below.
- To clear highlights later, go to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells. Deleting a helper column does not remove conditional formatting, so clear the rule separately.
- Use a second colour, set through Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values with a custom format, to distinguish duplicates from the original entry.
- For a quick count without formulas, select the column and look at the status bar at the bottom of the window: it shows the count of selected cells, and you can compare that to a COUNTIF total.
- Keyboard shortcut for a filter toggle is Ctrl+Shift+L (Command+Shift+L on Mac).
If That Did Not Work
- Nothing is highlighted. Check that a rule exists for the range in Home > Conditional Formatting > Manage Rules, and that the range includes the cells you are looking at.
- Everything is highlighted. You probably selected a range where every value genuinely repeats, or applied the rule by column across the whole sheet and empty cells are matching each other. Limit the range to the rows that contain data.
- Formula shows errors. A #NAME? error usually means the function name is misspelled or the cell references point outside the sheet. Check the range is spelled with absolute references ($ signs) where you need them.
- Remove Duplicates removed too many rows. Undo immediately, then re-run it with more columns ticked so the comparison is stricter.
Troubleshooting
If conditional formatting refuses to apply, the worksheet may be protected. Go to Review > Unprotect Sheet, which needs the password if one was set. If formulas recalculate slowly on a large sheet, limit COUNTIF ranges to the actual last row instead of referencing whole columns, which is far more efficient. If your filter shows no rows after choosing TRUE, the formula probably returns the text "TRUE" rather than a Boolean because the source values are text; wrap the formula in =IF(COUNTIF($A$2:$A$1000,A2)>1,"TRUE","FALSE") to get consistent text output. On Excel for the web, most of the above works identically, but very large workbooks may open read-only if another person has the file open, so close the other session before editing.
Frequently Asked Questions
Does Excel's duplicate check care about upper and lower case?
No. Conditional formatting, COUNTIF and Remove Duplicates all treat "ABC" and "abc" as the same value. If case matters, use an exact-match formula with EXACT inside SUMPRODUCT instead.
Can I display duplicates across two different sheets?
Yes, with a formula referencing the other sheet by name, for example =COUNTIF(Sheet2!$A$2:$A$500,A2)>1. Conditional formatting cannot compare two ranges directly, so use the helper column.
Will highlighting duplicates delete anything?
No. Conditional formatting only changes appearance. Your values and rows are untouched until you choose Data > Remove Duplicates or delete rows manually.
How do I show only the duplicate rows, not the first occurrence?
Use the growing-range formula =COUNTIF($A$2:A2,A2)>1 in a helper column and filter it to TRUE.
Why does my count show 1 for a value I know is repeated?
Usually a hidden space, a non-breaking space pasted from a website, or a number stored as text. TRIM and CLEAN in a helper column, or Text to Columns, will fix most cases.
Is there a way to list duplicates on a separate sheet?
Yes: use the helper flag column, then copy the filtered TRUE rows to another sheet with paste values. Excel's built-in tools display duplicates in place rather than generating a separate summary automatically.