跳到主要内容

如何计算Excel列中的重复值?

如果您在工作表中有一个包含唯一值和重复值的数据列表,并且您不仅想计算重复值的频率,还想知道重复值出现的顺序。 在Excel中,COUNTIF函数可以帮助您计算重复值。


计算Excel中重复项的频率

在Excel中,您可以使用COUNTIF函数来计算重复项。

选择一个与列表中第一个数据相邻的空白单元格,然后键入此公式 = COUNTIF($ A $ 2:$ A $ 9,A2) (范围 $ A $ 2:$ A $ 9 指示数据列表,并且 A2 站立要计数频率的单元格,可以根据需要更改它们),然后按 输入,然后拖动填充手柄以填充所需的列。 看截图:

Tips::如果要计算整个列中的重复项,请使用此公式 = COUNTIF(A:A,A2)A栏 指示数据列,并且 A2 代表您要计数频率的单元格,您可以根据需要更改它们)。

快速从Excel中的列中选择并计算所有重复/唯一值

通常,我们可以轻松地从列表中删除重复项 时间 > 删除重复 在 Excel 中。但是如何选择重复/唯一值,或从列中对它们进行计数?如果选择或计算除第一个重复项之外的重复/唯一项该怎么办?尝试 Kutools for Excel 选择重复和唯一单元格 效用!


广告选择计数重复

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

计算Excel中重复项的出现顺序

但是,如果要计算重复项的发生顺序,则可以使用以下公式。

选择一个与列表中第一个数据相邻的空白单元格,然后键入此公式 = COUNTIF($ A $ 2:$ A2,A2) (范围 $ A $ 2:$ A2 指示数据列表,并且 A2 站立您要计算订单的单元格,您可以根据需要更改它们),然后按 输入,然后拖动填充手柄以填充所需的列。 看截图:


使用 Kutools for Excel 计算并选择列中的所有重复项

有时您可能想要计算并选择指定列中的所有重复项。您可以使用 Kutools for Excel 轻松完成 选择重复项和唯一单元格 效用。

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

1。 选择要计算所有重复项的列或列表,然后单击 库工具 > 选择 > 选择重复项和唯一单元格.

2。 在打开的“选择重复和唯一单元格”对话框中,选中 重复(第一个除外) 选项或 全部重复(包括第一个) 选项,然后单击 Ok 按钮。

然后您将看到一个对话框,显示选择了多少重复项,同时在指定的列中选择了重复项。

请注意: 如果您要计算包括第一个在内的所有重复项,则需要检查 全部重复(包括第一个) 选择重复和唯一单元格对话框中的选项。

3。 点击 OK 按钮。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


使用 Kutools for Excel 计算列中每个重复项的出现次数

Kutools for Excel的 高级组合行 实用程序可以帮助Excel用户批量计算一列(在本例中为“水果”列)中每个项目的出现,然后轻松删除基于此列(“水果”列)的重复行,如下所示:

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

1。 选择包含要计算每个重复项的列的表,然后单击 库工具 > 内容 > 高级组合行.

2。 在“高级合并行”中,选择要计算每个重复项的列,然后单击 首要的关键,接下来选择要在其中计算结果的列,然后单击 计算 > 计数,然后单击 OK 按钮。 看截图:

现在,它已计算出指定列中每个重复项的出现。 看截图:

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示:通过 Kutools for Excel 计算 Excel 中列中的重复值


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
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")
This comment was minimized by the moderator on the site
Thanks so much, saved me hours!
This comment was minimized by the moderator on the site
i need this
There are 24 students.how many groups are there to take 10 student in 1 group
example:
1,2,3,4,5 take 1 group in 3 number

ans={1,2,3} {2,3,4} {3,4,5} {4,5,1} {5,1,2,}

how to do this excel will create this file
This comment was minimized by the moderator on the site
Hi patel akshay,
You can use the COMBIN function in Excel directly.
=COMBIN(24,10)
This comment was minimized by the moderator on the site
Thank You very much. It's very useful.
This comment was minimized by the moderator on the site
I must be stupid as the KuTools solution is not working for me. I have copied the example with Fruits column (which I put 3 Apple entries in), made a column next to it which is blank called Count column. KuTools -> Content -> Advanced Combine Rows. Select Fruit column as primary key, Count column as Calculate -> Count. Hit OK. Nothing. No change to the sheet. Help please?
This comment was minimized by the moderator on the site
Hi BillBrewster,
Would you do me a favor and send me a screenshot about the Advanced Combine Rows dialog? Just like the screenshot as below. Thanks in advance!
This comment was minimized by the moderator on the site
Dear, I am working on the attached Screenshot and Excel File. I need to calculate the Values in Column "G" i.e. to Count unique text values based on multiple (Two) criteria, but criteria are in NUMBERS. Further, Its is big sheet, therefore I want to use the cell reference in range and in criteria. I am very confused. I want to count the column C i.e. Degree based on the Criteria E and F. That is,I need to set formula in G2, such that, Look E2 in column A and Look F2 in column B and count the unique text values in Column C. Hope it is clear.

I am very thankful to you please


Details:
I have a data of more than 1000 companies with different year. As in column A, I have companies and B shows the year for which these companies have data. For example, First company have data for year 2011, 2012, 2013 and 2015. For company 2, I have data for year 2014 and 2011 and so on. Since majority of companies have data from 2011 to 2015, therefore I select this range in column F for each company. Now, I want to count the unique Degrees for cell G2, if there is 389841988 (Company ID for First company) in A and there is 2011 in Column B. Now I need to set formula in G2,in a way, If I will drag the formula G2 in cell G3, then It should give me the value by looking such as if there is 389841988 (Company ID for First company) in A and there is 2012 in Column B, the based on these two criteria, it should count the unique text in C2 and so on.
Look on the second sheet named Example, I did the same for INDEX, MATCH function and as well for SUMIFS function; in C2 I have the array formula INDEX($F:$H,MATCH(1,(A2=$F:$F)*(B2=$G:$G),0),3) and in D2 I have SUMIFS(I:I,F:F,A2,G:G,B2). These help me to do what I want with two criteria (To match and also to sum) and also I can drag these for rest of cell. I am looking something like this, or anything that I can drag to count unique degrees. Thank you very much. I am waiting.

Plz help. I am very thankful to for this kindness
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations