计算序列中的重复值 [英] Count duplicate values in a sequence

查看:30
本文介绍了计算序列中的重复值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Excel计算一列中的重复数据?

How can I count duplicate data in a column using excel?

示例

  A     B
apple   1
apple   2
apple   3
ball    1
bat     1
dog     1
dog     2
gole    1
gole    2
gole    3
gole    4

推荐答案

我认为您所遇到的所有单元格都没有统一的公式.

I think there is no uniform formula for all cells in your case.

我建议这样的事情:将其放在B列上,然后填写其余部分.

I would suggest something like this: Put this on B column and then fill down the rest.

=COUNTIF($A$1:$A1,$A1)

填充其他行后,行的值将如下所示

After you fill the other rows, values of rows would look like this

B1=COUNTIF($A$1:$A1,$A1)
B2=COUNTIF($A$1:$A2,$A2)
B3=COUNTIF($A$1:$A3,$A3)

这篇关于计算序列中的重复值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆