Table of Contents
Counting duplicates in Excel is a simple and efficient process that allows users to easily identify and track duplicate entries in their data. To count duplicates, users can utilize the built-in functions such as COUNTIF and COUNTIFS, which allows for specific criteria to be applied when counting duplicates. Additionally, users can also use conditional formatting to highlight duplicate entries in their data. This feature can be further customized to highlight and count duplicates based on specific formatting or data values. By using these methods, users can quickly and accurately identify and manage duplicate data in their Excel spreadsheet.
Count Duplicates in Excel (With Examples)
Often you may want to count the number of duplicate values in a column in Excel.
Fortunately this is easy to do and the following examples demonstrate how.
Example 1: Count Duplicates for Each Value
We can use the following syntax to count the number of duplicates for each value in a column in Excel:
=COUNTIF($A$2:$A$14, A2)
For example, the following screenshot shows how to use this formula to count the number of duplicates in a list of team names:

From the output we can see:
- The team name ‘Mavs’ occurs 2 times
- The team name ‘Hawks’ occurs 3 times
- The team name ‘Nets’ occurs 4 times
And so on.
Example 2: Count Non-Duplicate Values
We can use the following syntax to count the total number of non-duplicate values in a column:
=SUMPRODUCT((A2:A14<>"")/COUNTIF(A2:A14,A2:A14&""))
For example, the following screenshot shows how to use this formula to count the number of non-duplicates in a list of team names:

From the output we can see that there are 6 unique team names.
Example 3: List Non-Duplicate Values
=UNIQUE(A2:A14)The following screenshot shows how to use this formula to list out all of the unique team names in a column:

We can see that there are 6 unique team names and each of them are listed in column C.
The following tutorials explain how to perform other common operations in Excel:
Cite this article
stats writer (2024). How can I count duplicates in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-count-duplicates-in-excel/
stats writer. "How can I count duplicates in Excel?." PSYCHOLOGICAL SCALES, 14 May. 2024, https://scales.arabpsychology.com/stats/how-can-i-count-duplicates-in-excel/.
stats writer. "How can I count duplicates in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-count-duplicates-in-excel/.
stats writer (2024) 'How can I count duplicates in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-count-duplicates-in-excel/.
[1] stats writer, "How can I count duplicates in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, May, 2024.
stats writer. How can I count duplicates in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
