VLOOKUP Problem Searching a List of Dates

SidBord

Active Member
Joined
Aug 23, 2004
Messages
346
I have a column of dates that are formatted as:
"(ddd) mmm dd, yy" ........ Looks like "(Sun) Dec 25, 05"

Using the formula:
VLOOKUP(F9, B5:D100,3,FALSE)
where F9 contains "(Sun) Dec 25, 05"
it cannot find the value. I figured the FALSE gets rid of the requirement that the list be in sort order, so why can't VLOOKUP find the date?? I'm convinced it has something to do with the peculiar nature of Excel dates, but what IS the problem. I tried using DATEVALUE and DATE functions to get the serial number version of the date, but that didn't help. Yes, Dec 25th IS in the search list. :eek:
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I set up your situation on my end and things worked fine....so barring any additional info, I can't really say what might be happening. However, as far as the "FALSE" is concerned, from Excel help on Vlookup: "If FALSE, VLOOKUP will only find an exact match" ... it also mentions that your list won't need to be sorted (like you said), but given that the FALSE makes your vlookup a bit more rigourous, you might want to check to see if the values are EXACTLY the same...I suggest using the formula

=EXACT(B8,F9)

Where B8 is the cell location of Dec 25 in your B5:D100 array.

Ok, and given all that, posting your spreadsheet would still be pretty helpful.

HTH
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,727
Members
449,049
Latest member
MiguekHeka

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top