-1

我需要excel中的函数或宏来计算列中具有相同数据的单元格:

mn3288a  
mn3088a  
mn3088a  
mn3088a  
mn3288a  
3009-3001  
LKE1  
LKE1  
LKE1  
mn3088a  
3001-3009  

结果应该是这样的:

mn3288a    2  
mn3088a    4  
3009-3001  2  
LKE1       3  

在新表中。所以我需要复制一个值并计算该值在一列中的重复次数。数据表每天归档,大约有25000个不同的值。我试图countifs, exat, if...在excel中组合函数,但没有任何进展。而且我对宏了解不多。所以任何帮助,一个提示会很棒!谢谢

4

2 回答 2

1

I'm almost entirely sure either a pivot table or a countif() would work for you. The pivot table would be easier.

Just create it and refresh it every day after you paste in the new data (or you can change the pivot table to automatically refresh when you open the file).

于 2013-01-11T19:37:33.813 回答
0

当您知道数据列表时,您可以countif像 Poweruser 上面提到的答案那样轻松使用。当您不知道时,您也可以使用 Pivot。

  • 但是无论如何,如果您打算使用 VBA ...(不推荐,但如果您这样做),请尝试一下 :)

    按未知列值计数。

于 2013-01-11T19:55:19.203 回答