检查一列中的一个值是否在另一列中 [英] Check if one value in one column is in another column
问题描述
我想检查 Date2列
中的日期是否与 Date1列
中的日期匹配?不匹配。如您所见,它的前25个匹配,但最后有10行为空,这意味着这些值丢失了。
I want to check if the dates in the Date2 column
match the dates in the Date1 column
and which dates do not match. As you can see for the first 25 it matches, but in the end there are 10 rows empty which means that these values are missing.
我尝试过:
=VLOOKUP(C2:C3020;B2:C3037;C2;TRUE)
但这只会给我 #REF!
返回。
也许还有另一种方法可以找出哪些日期不匹配?
Is there probably another way to find out which dates do not match?
感谢您的回答!
推荐答案
您应使用以下公式:
=VLOOKUP(C2;$B$2:$B$3037;1;FALSE)
只需将其写入 D2
单元格并将其向下拉伸,直到 D3037
。如果在列 B
中找不到列 C
中日期的完全匹配,则错误值#N / A
返回。
just write it in D2
cell and stretch it down until D3037
. If an exact match of date from column C
is not found in column B
, the error value #N/A
is returned.
要获取 FOUND
和未找到
值,可以使用以下公式的修改:
To get FOUND
and NOT FOUND
values you can use modification of this formula:
=IF(ISERROR(VLOOKUP(C2;$B$2:$B$3037;1;FALSE));"NOT FOUND";"FOUND")
这篇关于检查一列中的一个值是否在另一列中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!