基本上我有一张这样的表格:
A B C D
Name (From File 1) Name (From File 2) Phone Number Countif
Walt Jesse 5555555555 IF(COUNTIF($B$3:$B$10,A3),A3,"No Match")
Jesse Mike 5555555556 IF(COUNTIF($B$3:$B$10,A4),A4,"No Match")
Skyler Saul 5555555557 IF(COUNTIF($B$3:$B$10,A5),A5,"No Match")
Hank Todd 5555555558 IF(COUNTIF($B$3:$B$10,A6),A6,"No Match")
Marie Gus 5555555559 IF(COUNTIF($B$3:$B$10,A7),A7,"No Match")
Saul Gomie 5555555550 IF(COUNTIF($B$3:$B$10,A8),A8,"No Match")
Huell IF(COUNTIF($B$3:$B$10,A9),A9,"No Match")
Mike IF(COUNTIF($B$3:$B$10,A10),A10,"No Match")
D 列计算结果为:
D
Countif
No Match
Jesse
No Match
No Match
No Match
Saul
No Match
Mike
A 列的顺序非常具体,我需要返回 D 列:
D
Countif
No Match
Jesse_5555555555
No Match
No Match
No Match
Saul_5555555557
No Match
Mike_5555555556
换句话说,如何让 IF(COUNTIF()) 显示目标旁边单元格的值?它会像 IF(COUNTIF($B$3:$B$10,A3),CONCATENATE(A3,"_",???),"No Match") 那样吗?
答案1
这会起作用,但前提是 B 列中没有重复项
=IF(COUNTIF($B$3:$B$10,A3),A3&"_"&VLOOKUP(A3,$B$3:$C$10,2,FALSE),"No Match")