Skip to main content

How to count duplicate values in a column in Excel?

Author: Sun Last Modified: 2024-07-19

In the realm of data analysis and management, identifying and counting duplicate values in a dataset is a crucial task. Excel, provides several methods to count duplicate values in a column efficiently. This article explores various techniques to accomplish this, from simple functions to more advanced features, helping you choose the best approach based on your dataset size and specific requirements.

For example, if you have a list of data in a worksheet containing both unique and duplicate values, you may not only want to count the frequency of these duplicates but also determine the order of their occurrences as following screenshot shown.


Count the frequency of duplicates in Excel

In Excel, you can use COUNTIF function to count the duplicates.

Select a blank cell adjacent to the first data of your list, and type this formula =COUNTIF($A$2:$A$9, A2) (the range $A$2:$A$9 indicates the list of data, and A2 stands the cell you want to count the frequency, you can change them as you need), then press Enter, and drag the fill handle to fill the column you need. See screenshot:
count duplicates in a column formula

Tip: If you want to count the duplicates in the whole Column, use this formula =COUNTIF(A:A, A2) (the Column A indicates column of data, and A2 stands the cell you want to count the frequency, you can change them as you need).


Track the order of occurrence of duplicates in Excel

But if you want to identify the order of the occurrence of the duplicates, you can use the following formula.

Select a blank cell adjacent to the first data of your list, and type this formula =COUNTIF($A$2:$A2,A2) (the range $A$2:$A2 indicates the list of data, and A2 stands the cell you want to count the order, you can change them as you need), then press Enter, and drag the fill handle to fill the column you need. See screenshot:
count duplicates in a column formula


Count occurrences of each duplicate in a column with Kutools for Excel

Kutools for Excel’s Advanced Combine Rows utility can help Excel users to batch count the occurrences of each items in a column (the Fruited Column in our case), and then delete the duplicate rows based on this column (the Fruit Column) easily as below:

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Read More...         Free trial...

1. Select the table containing the column where you will count each duplicate, and click Kutools > Merge & Split > Advanced Combine Rows.

2. In the Advanced Combine Rows, select the column you will count each duplicate and click Primary Key, next select the column you will put counting results in and click Calculate > Count, and then click the OK button. See screenshot:
count duplicates in a column kutools
And now it has counted the occurrence of each duplicate in the specified column. See screenshot:
count duplicates in a column kutools result

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now


Demo: count duplicate values in a column in Excel by Kutools for Excel


Kutools for Excel: Over 300 handy tools at your fingertips! Start your 30-day free trial with no feature limitations today. Download Now!

Relative Articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (58)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Tolong di Bantu, Jika misalkan di Kolom A Misalkan No Part yang sama ada 3 Part, lalu di kolom b ada tiga progress, Bagaimana menegtahui bahwa jika di kolom sudah complete semua maka di kolom c complete, tetapi jika ada salah satu belum complete maka di kolom C On Progress, Sebagai catatan untuk di kolom A variatif , ada yang jumlahnya 3, 4, 2, etc.. Mohon di bantu caranya untuk di excel.

A B C
Part 1 Progress On Progress
Part 1 Complete On Progress
Part 1 Complete On Progress
This comment was minimized by the moderator on the site
Halo, bagaimana jika kita ingin menjumlahkan total dari data duplikat tersebut? Contoh, Banyaknya Apel pada baris satu adalah 734pcs, Apel pada baris 5 100pcs, Apel pada baris 8 20pcs. Bagaimana cara menjumlahkannya dengan otomatis? Terima Kasih untuk jawabannya
This comment was minimized by the moderator on the site
Hi Lia,
You can wrap multiple COUNTIF expressions into one SUM formula, in which the COUNTIF expressions shoule be seperated by comma. Here is an example: =SUM(COUNTIF($B$2:$B$8, B2),COUNTIF($B$2:$B$8, B3),COUNTIF($B$2:$B$8, B4)).The cells B2, B3, B4 stand for the value that you want to count its frequency.
Hope this helps you.
Amanda
This comment was minimized by the moderator on the site
Hi, I'm trying to calculate the duplicate values as a single value in excel. But I can't. Can you help me?. For example, I have entered in rows as 1001,1002,1003,1004 and again 1001,1002,1003,1004" like this. In this case, all are duplicate ones. but it should bring "1001" as a single count, not two counts. Is there any formula for it?
This comment was minimized by the moderator on the site
Hi Manikandan.K,
Supposing the data you will count are placed in the Range A1:A20, you can use below arrow formula to count (a set of duplicates only count once):
=SUM(IF(A1:A20<>"",1/COUNTIF(A1:A20,A1:A20)))
Please note that it’s an array formula, please press Ctrl + Shift + Enter keys to get the counting result.
This comment was minimized by the moderator on the site
Hi can you please let me know in this how to calculate data in multiple conditions include wiht this condition,  if I also chosen columns in location wise and status wise Thank you 
This comment was minimized by the moderator on the site
Hi I'm trying to run the "Advanced Combined Row" feature, but when I run it excel crashes every time.
This comment was minimized by the moderator on the site
I have entered in a row as " 10,10,10,10,10,10,10,8,11,10,10,10,10,10" like this, now I entered 14 number values. How I can count the different number in single row? the result should be "14" in my case.
This comment was minimized by the moderator on the site
Hi Sampath Rangan,
Do you need to count all numbers in the row, or count the duplicates in the row?
Supposing the numbers are in the Range A1:N1, now you can count the numbers as follows:
Count all numbers: =COUNT(A1:N1)
Count duplicates, says 10: =COUNTIF($A$1:$N$1,"10")
There are no comments posted here yet
Load More
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations