Look up with different date formats

Westbury

Board Regular
Joined
Jun 7, 2009
Messages
139
I have a table with dates in format d/mmm and data in second column. I would like to use this in a lookup using dates in any year so I'm searching for a result against d/mmm/yy. Vlookup doesn't work; is there a work around?

Geoff
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Regardless of what format a date has it has a year, it just may not be visible in the cell. The lookup value in vlookup should have the year


Excel 2010
AB
57/Jan7
69/Jan99
7
8
91/7/20177
Sheet2
Cell Formulas
RangeFormula
B9=VLOOKUP(A9,A5:B6,2,0)
 
Upvote 0
I am going to guess that you have text values that you are trying to compare to number values (date serial numbers). LOOKUP functions can only compare the same data types. So looking up Text, that looks like a date, in a series of actual dates will always return #NA .

Workarounds are always to change or add a like value type in one of those Tables.
Text-To-Columns
VALUE()
TEXT()
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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