开发者

excel mark duplicates values

开发者 https://www.devze.com 2023-04-13 01:25 出处:网络
I have a data like this: input: person19 person18 person18 person27 person28 person36 person38 person36 output this:

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
pe开发者_高级运维rson3     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.


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

excel mark duplicates values

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号