How to identify duplicate values in two columns in Openoffice Calc

喜你入骨 提交于 2019-12-07 10:13:37

问题


I have two columns that have numbers in them. The other has the numbers only once, when the other has duplicates. The numbers in these columns don't match. I need to find all the numbers in column B that have a match in column A.

This probably explains it better:
A B
1 2
2 2
4 5
6 5
7 6
8 6

I want to get a result like:
A B C
1 2 1
2 2 1
4 5 0
6 5 0
7 6 1
8 6 1

or any other way for me to identify the cells in column B which don't have a match in column A

I've spent hours googling and trying different solutions but no go, so a nudge to the right direction would be appreciated

Thank you

-M


回答1:


In cell C1 place:

=COUNTIF(A$1:A$6;B1)

And copy down.



来源:https://stackoverflow.com/questions/13305569/how-to-identify-duplicate-values-in-two-columns-in-openoffice-calc

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