2011-10-12 64 views
2

我有这样一个数据: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条件来确定,当一个人有两个相同的值。我怎么能为整张纸做这个?

谢谢。

回答

3

这是一个简单的两步式

  • 请从您的两列,即结合了串,如果他们是在一个& B,则在C1把 = A1 &工作栏“ - ” & B1

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

  • 在D1输入 = IF(COUNTIF($ C $ 1:$ C $ 8 C1)> 1时, “是”, “否”) 和复制下来

enter image description here