Excel查找字母数字查找值
我有两个数百行的列表。 我想知道列表1中列出了哪些项目。
List1项目:
ENSG00000004139 ENSG00000004846 ENSG00000005187 ENSG00000005471 ENSG00000005884 ENSG00000006283
List2项目:
ENSG00000003756 ENSG00000003987 ENSG00000003989 ENSG00000004059 ENSG00000004139 ENSG00000004399 ENSG00000004455 ENSG00000004468
在这种情况下,列表1中只包含列表2中的项目ENSG00000004139。我尝试了vlookup公式,但它不起作用。 任何人都知道如何使它与字母数字查找值工作?
我已经尝试了VLOOKUP
以及IF
函数嵌套IF(ISERROR(VLOOKUP))
。 他们都没有工作。 不工作示例: =IF(ISERROR(VLOOKUP(F42,List1!A39:List1!A$2:A$1000,1,TRUE)), "Does NOT exist in List 1","Exists in List 1")
尝试一个计数公式代替
=IF(COUNTIF(List1!A$2:A$1000,F42)>0,"Exists in List 1","Does NOT exist in List 1")
或匹配公式
=IF(NOT(ISERROR(MATCH(F42,List1!A$2:A$1000,0))),"Exists in List 1","Does NOT exist in List 1")