Excel栏中最常见的文本 [英] Most common text in Excel column

查看:60
本文介绍了Excel栏中最常见的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大约1000个产品ID的列表,并希望找到最常出现的ID.

I have a list of about 1000 product ids and would like to find those that appear most frequently.

示例:

f54
f66
f54
f77
f64
f54
f66
f54
f23

结果将是:

f54
f66
f64
f24

这将在Excel 2010(MAC)或LibreOffice中完成.

This will be done in either Excel 2010 (MAC) or LibreOffice.

推荐答案

这是您的工作...

+-----+-----+---+
|  A  |  B  | C |
+-----+-----+---+
| f54 | f54 | 4 |
| f66 | f66 | 3 |
| f54 | f54 | 3 |
| f77 | f77 | 2 |
| f64 | f64 | 2 |
| f54 | f23 | 2 |
| f66 |     |   |
| f54 |     |   |
| f23 |     |   |
+-----+-----+---+

A 是您的源列.

B 是列 A 的所有不同值,如果您不知道如何操作,请按以下步骤进行操作:

column B are all the distinct values of column A, this is how you do it if you dont know how: http://office.microsoft.com/en-us/excel-help/filter-for-unique-values-or-remove-duplicate-values-HP010073943.aspx

C1为:

=COUNTIF(A1:A9,B1)

C2:

=COUNTIF(A1:A9,B2)

C3:

=COUNTIF(A1:A9,B3)
...

这篇关于Excel栏中最常见的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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