excel标记重复值

我有这样的数据:

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 

我正在使用Excel,我想使用if条件来确定一个人何时有两个相同的值。 我怎样才能做到这一点?

谢谢。

这是一个简单的两步公式

  • 制作一个工作栏,结合两列中的string,即如果它们在A&B中,那么在C1 put = A1&“ – ”&B1

“ – ”有助于避免错误的匹配

  • 在D1中input= IF(COUNTIF($ C $ 1:$ C $ 8,C1)> 1,“是”,“否”)并复制

在这里输入图像说明