excel mark duplicates values

吃可爱长大的小学妹 提交于 2019-12-10 23:34:28

问题


I have a data like this:

input:
person1     9
person1     8
person1     8
person2     7
person2     8
person3     6
person3     8
person3     6

output this:
person1     9   no
person1     8   yes
person1     8   yes
person2     7   no
person2     8   no
person3     6   yes
person3     8   no
person3     6   yes

I am using excel and i want to use an if condition to determine when a person have two same values. How can i do this for the whole sheet?

thanks.


回答1:


It is an easy two step formula

  • Make a working column that combines the strings from your two columns, ie if they are in A&B then in C1 put =A1&"-"&B1

The "-" helps avoid false matches

  • in D1 enter =IF(COUNTIF($C$1:$C$8,C1)>1,"yes","no") and copy down



来源:https://stackoverflow.com/questions/7743273/excel-mark-duplicates-values

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