EXCEL中多重条件查重
(2022-03-31 14:40:01)分类: 学习笔记 |
例题:
要求:姓名、籍贯、年龄完全相同,判断为重复
姓名 | 籍贯 | 年龄 | 是否完全重复 |
张璧 | 山西 | 22 | 重复 |
李厚菊 | 云南 | 23 | 不重复 |
张碧 | 山西 |
22 |
不重复 |
张璧 | 山西 | 22 |
|
赵琼 | 河北 | 26 | 不重复 |
姜婕 | 山西 | 27 | 不重复 |
金开萍 | 福建 | 21 | 不重复 |
魏半雪 | 福建 | 30 | 不重复 |
公式1:
IF((COUNTIF($A$2:$A$9,$A$2:$A$9)>1)*AND(SUM(COUNTIF($B$2:$B$9,$B$2:$B$9))>1)*AND(SUM(COUNTIF($C$2:$C$9,$C$2:$C$9))>1),"重复","不重复 公式2: |
IF(SUM((COUNTIF($A$2:$A$9,$A$2:$A$9))>1)*AND(SUM(COUNTIF($B$2:$B$9,$B$2:$B$9))>1)*AND(SUM(COUNTIF($C$2:$C$9,$C$2:$C$9))>1),"重复","不重复") 公式3: |
IF(AND(COUNTIF($A$2:$A$9,$A$2:$A$9)>1,COUNTIF($B$2:$B$9,$B$2:$B$9)>1,COUNTIF($C$2:$C$9,$C$2:$C$9)>1),"y","n") |
公式4: IF(COUNTIFS($A$2:$A$9,$A$2:$A$9,$B$2:$B$9,$B$2:$B$9,$C$2:$C$9,$C$2:$C$9)>1,"y","n") |