To find repeated numbers in Excel, select the cells and choose Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values, and every number that appears more than once is colored.
This guide covers that method plus four more: a COUNTIF helper column, Remove Duplicates, a PivotTable count and a dynamic array formula that lists each repeated number once.
1. Using conditional formatting to highlight repeats
Conditional formatting colors the repeats without changing any data. It is the safest first check, and the rule updates as you type new numbers into the range.
- Select the cells that hold the numbers, for example A2:A200.
- Go to the Home tab and select Conditional Formatting.
- Point to Highlight Cells Rules and select Duplicate Values.
- Pick a format from the list next to values with.
- Select OK. Every number that appears two or more times in the selection is now highlighted.
To color the numbers that appear only once instead, open Conditional Formatting > Manage Rules > New Rule, choose Format only unique or duplicate values and set Format all to duplicate or unique.
Conditional formatting cannot be applied to the Values area of a PivotTable, so run it on the source range.

Excel repeated numbers: highlight, count, remove or list them
| What you want | Method | Changes your data? |
|---|---|---|
| See the repeats at a glance | 1. Conditional formatting | No |
| Know how many times each number appears | 2. COUNTIF helper column | No, adds a column |
| Keep one copy of each number | 3. Remove Duplicates | Yes, deletes rows |
| A summary table of numbers and their counts | 4. PivotTable with Count | No, adds a sheet |
| A live list of only the repeated numbers | 5. UNIQUE and FILTER formula | No, spills a list |
2. Using COUNTIF function for identifying repeated numbers
COUNTIF counts how many cells in a range match a value. Pointing it at each number in turn gives the number of times that number appears, so any result above 1 is a repeat.
- Click the first empty cell next to your data, for example B2 when the numbers start in A2.
- Type =COUNTIF($A$2:$A$200,A2) and press Enter. The dollar signs lock the range so it does not shift.
- Drag the fill handle at the bottom-right of B2 down to the last row of data.
- Read column B: 1 means the number is unique, and 2 or more shows how many times it repeats.
- For a yes/no flag instead, use =COUNTIF($A$2:$A$200,A2)>1, which returns TRUE for every repeated number.
- Select column B and choose Data > Filter, then filter to values greater than 1 to show only the repeats.
COUNTIF syntax is COUNTIF(range, criteria), and it accepts one condition only. Use COUNTIFS when a repeat should count only if a second column also matches.
3. Using the Remove Duplicates feature to isolate unique or repeated numbers
Remove Duplicates keeps the first copy of each number and deletes the rest. It permanently removes rows, so copy the data to another worksheet first.
- Copy the column or table to a new worksheet so the original stays intact.
- Remove any outline or subtotals from the data, because Remove Duplicates cannot run on them.
- Select the range, or click any cell inside an Excel table.
- On the Data tab, in the Data Tools group, select Remove Duplicates.
- Under Columns, check only the column that holds the numbers, or use Select All to compare whole rows.
- Select OK. Excel reports how many duplicate values it removed and how many unique values remain.
- Press Ctrl + Z or select Undo if the result is not what you wanted.
Comparing the row counts before and after tells you how many repeats there were. To build a unique list without deleting anything, select Data > Advanced, choose Copy to another location, enter a cell in Copy to, check Unique records only and select OK.
If the goal is a clean list rather than a count, you can remove duplicates from a single column in other ways too.

4. Using PivotTables to summarize and find repeated numbers
A PivotTable groups identical numbers into one row and counts them. The source column needs a single, non-blank header such as Order ID.
- Select the column of numbers, including its header.
- Go to Insert > PivotTable, choose New Worksheet and select OK.
- In the PivotTable Fields pane, drag the number field to Rows.
- Drag the same field to Values. Excel sums numbers by default.
- Click the arrow next to the field in Values, select Value Field Settings, choose Count under Summarize Values By and select OK.
- Sort the count column from largest to smallest, or filter it to show counts greater than 1.
Every row with a count of 2 or more is a repeated number. Format the source as an Excel table so new rows are included when you refresh the PivotTable.

5. Creating a dynamic array formula (Excel 365, 2021 and later)
UNIQUE and FILTER spill their results into the cells below, so one formula returns the full list. They work in Excel for Microsoft 365, Excel 2024, Excel 2021, Excel for the web, and the Excel mobile apps.
- Click an empty cell with plenty of empty cells below it, for example D2.
- Type =UNIQUE(FILTER(A2:A200,COUNTIF(A2:A200,A2:A200)>1,"No repeats")) and press Enter.
- Read the spilled list: each repeated number appears once, in the order it first occurs.
- Wrap the formula in SORT, as in =SORT(UNIQUE(FILTER(A2:A200,COUNTIF(A2:A200,A2:A200)>1,"No repeats"))), to list the repeats in ascending order.
- To list the numbers that appear exactly once instead, use =UNIQUE(A2:A200,,TRUE), which sets the exactly_once argument.
The "No repeats" text is FILTER's if_empty argument. Without it, a range with no repeats returns a #CALC! error because Excel does not support empty arrays.
If the source is an Excel table referenced with structured references, the spilled list grows and shrinks as you add or remove rows.

How to find duplicate numbers between two columns in Excel
This variation of the formula approach checks whether each number in one column also appears in another column. Use it when you have two lists rather than one.
- Put the first list in column A and the second list in column C, leaving column B empty.
- In B1, type =IF(ISERROR(MATCH(A1,$C$1:$C$5,0)),"",A1), adjusting $C$1:$C$5 to the real range of the second list.
- Select B1 down to the last row of column A.
- On the Home tab, in the Editing group, select Fill > Down.
- Read column B: it shows each number from column A that also appears in column C and stays blank otherwise.
Lookup functions handle the same job across sheets, and VLOOKUP in Excel works when you also need a value from the matching row.

Excel duplicate values not highlighting or counting correctly
Numbers that look the same are not flagged as repeats
Extra spaces, nonprinting characters or numbers stored as text make the values differ.
- Add a helper column with =TRIM(CLEAN(A2)) to strip spaces and nonprinting characters.
- Convert the helper column back to numbers with =VALUE(TRIM(CLEAN(A2))).
- Run conditional formatting or COUNTIF on the helper column.
Advanced Filter treats equal values as different
Unique filtering and Remove Duplicates compare the displayed value, so 3/8/2006 and Mar 8, 2006 count as two values.
- Select the column and apply one number format from Home > Number Format.
- Run the filter or Remove Duplicates again.
Remove Duplicates will not run
The range has an outline or subtotals.
- Remove the subtotals and outline from the data.
- Select the range again and choose Data > Remove Duplicates.
Duplicate highlighting does not appear in a PivotTable
Conditional formatting by unique or duplicate values cannot be applied to the PivotTable Values area.
- Apply the Duplicate Values rule to the source data instead.
- Or filter the PivotTable count column to values greater than 1.
The formula returns #CALC!, #REF! or #VALUE!
FILTER found nothing, or the formula points at another workbook that is closed.
- Add an if_empty value to FILTER, such as "No repeats", to replace #CALC!.
- Open the other workbook that the COUNTIF, UNIQUE or FILTER formula refers to, then recalculate.
Find repeated numbers in Excel FAQ
How do I highlight duplicate numbers in Excel?
Select the range, then choose Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. Pick a format next to values with and select OK. Every number that appears more than once in the selection is colored.
How do I count how many times a number repeats in Excel?
Use COUNTIF. In the cell next to the first number, type =COUNTIF($A$2:$A$200,A2) and fill it down. The result is the number of times that value appears in the range, and anything above 1 is a repeat.
What is the formula to find duplicates in Excel?
=COUNTIF($A$2:$A$200,A2)>1 returns TRUE for each repeated number. In Excel 365 or Excel 2021 and later, =UNIQUE(FILTER(A2:A200,COUNTIF(A2:A200,A2:A200)>1)) lists every repeated number once.
How do I show only the duplicate numbers in Excel?
Add a COUNTIF helper column, select it and choose Data > Filter, then filter for values greater than 1. In Excel 365 or 2021 and later, a UNIQUE and FILTER formula returns the repeated numbers as a separate list.
Does Remove Duplicates delete data permanently?
Yes. Remove Duplicates deletes the duplicate rows, including data in columns you did not check. Copy the data to another sheet first, and press Ctrl + Z straight away if you need to undo it.
Can I find duplicates in Excel for the web?
Yes. Remove Duplicates works in Excel for the web with the same steps but fewer dialog options, and Ctrl + Z undoes it. UNIQUE and FILTER are also supported there, so the dynamic array formula in method 5 works in a browser.
Is COUNTIF case sensitive?
No. COUNTIF criteria are not case sensitive, so apples and APPLES match the same cells. For numbers this makes no difference, but stray spaces or numbers stored as text can still stop matches.
Why does Excel not find duplicates that look identical?
The cells usually differ in hidden ways: leading or trailing spaces, nonprinting characters, or one number stored as text. Clean the column with TRIM and CLEAN, convert it with VALUE, and run the check again.





