简体   繁体   中英

Excel: VLOOKUP from serial date to general number

Everyday I receive a file where the date is in YYYYMMDD but it is stored as a number ie 20200203. However I want to do a VLOOKUP on this but I have a date value of 43760 (or similar). I cant change the file I am doing the VLOOKUP on as I only have a read only access.

How can I do this?

I have searched everywhere but cant actually find the solution. Only an issue

Use TEXT to format your date and then -- to convert the result to a number. If your date value is in A1 , then

=VLOOKUP(--TEXT(A1,"yyyymmdd"),...)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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