date format in vlookup

waldymar

Board Regular
Joined
Feb 19, 2009
Messages
238
Dear All,

I have a cell where is "Unit Price 19/05/2011". By formulas I extract date from that cell and using vlookup I'm serching for unit price corresponding to that day. However, the extracted date I guess is in text format and vlookup doesn't recognize it when it's searching for it. How can I make it?
Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Multiply the extracted text-date by 1 or add 0, and that will convert it to a serial date.

There is also the DATEVALUE(text-date) function that will convert it as well.
 
Upvote 0
Dear All,

I have a cell where is "Unit Price 19/05/2011". By formulas I extract date from that cell and using vlookup I'm serching for unit price corresponding to that day. However, the extracted date I guess is in text format and vlookup doesn't recognize it when it's searching for it. How can I make it?
Thanks


Hi
use this part as lookup value

MID(A1;1;SEARCH("/";A1)-1)
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,881
Members
452,948
Latest member
Dupuhini

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