excel标记重复值 [英] excel mark duplicates values

查看:147
本文介绍了excel标记重复值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的数据:

 输入:
person1 9
person1 8
person1 8
person2 7
person2 8
person3 6
person3 8
person3 6

输出:
person1 9否
person1 8 yes
person1 8 yes
person2 7 no
person2 8 no
person3 6 yes
person3 8 no
person3 6是

我正在使用excel,我想使用if条件来确定一个人有两个相同值。



谢谢。

解决方案

p>这是一个简单的两步公式




  • 创建一个工作列,结合两列的字符串,即它们在A& ; B然后在C1放
    = A1& - & B1



- 有助于避免假匹配1 $,$($ C $ 1:$ C $ 8,C1)> 1,是 ,no)
并复制



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.

解决方案

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标记重复值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆