简体   繁体   English

如果查找值是日期,则无法进行vlookup

[英]not able to vlookup if lookup value is date

   A                A       B
9/24/2017       9/24/2017   10
9/23/2017       9/24/2017   20
9/22/2017       9/23/2017   30
9/21/2017       9/24/2017   40
9/20/2017       9/23/2017   50
9/19/2017       9/24/2017   60
9/18/2017       9/24/2017   70

while comparing date value with date it returns formula only, 在比较日期值和日期时,它仅返回公式,

=vlookup(C4,M4:N19,2,FALSE)

do we need to change the data format before we lookup? 查找之前是否需要更改数据格式?

You need to make sure they have the same data format. 您需要确保它们具有相同的数据格式。 If the lookup value has a date format the table array has a string format it won't match. 如果查找值具有日期格式,则表数组具有不匹配的字符串格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM