Most common text in Excel column

霸气de小男生 提交于 2021-01-28 00:04:38

问题


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

Example:

f54
f66
f54
f77
f64
f54
f66
f54
f23

And the results would be:

f54
f66
f64
f24

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


回答1:


here's what you do...

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

column A is your source column.

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 will be:

=COUNTIF(A1:A9,B1)

C2:

=COUNTIF(A1:A9,B2)

C3:

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


来源:https://stackoverflow.com/questions/11422718/most-common-text-in-excel-column

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!