本文介绍了计算值的出现次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一列包含重复值的文本值。我想创建一个新的唯一值列(不重复)和一个列,每个列的频率。



最简单的方法是什么?效率不是很关心,因为它在10,000行以下。

解决方案

为了回答而不是评论,将列(A)复制到B数据>数据工具 - 删除重复,然后在C2中输入:

  = COUNTIF(A:A,B2)

并根据需要向下复制



/ p>

使用PivotTable作为@Tim:




I have a column of text values with repeated values. I want to create a new column of unique values (no repeats) and a column with the frequency of each of those values.

What's the easiest way to do that? Efficiency isn't much of a concern as it's under 10,000 rows.

解决方案

For the sake of an answer rather than comments, copy column (say A) to B (say) and for B only Data > Data Tools – Remove Duplicates then in C2 enter:

=COUNTIF(A:A,B2)

and copy down as required

OR (preferred option)

use a PivotTable as @Tim:

这篇关于计算值的出现次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 23:01
查看更多