Vlookup - text date cell

dunmore83

Well-known Member
Joined
Aug 24, 2011
Messages
540
Hi,

I have a simple Vlookup formula as follows;

=VLOOKUP(D4,'Milk-Prices'!$G$10:$S$21,4,0)

However D4 is formatted as a date text cell as follows;

="DAILY INCOME RESULTS - "&TEXT('P01-Summary'!M20,"dd mmm yy")

The vlookup formula is returning #N/A however if I simply format cell D4 as a straight date cell (i.e. [$-C09]dd-mmm-yy;@) the vlookup function works.

Is there a workaround here so the vlookup works when referencing a cell with text that is formatted as a date cell ?

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi, can't you use the unformatted date from the P01-Summary sheet? i.e.

=VLOOKUP('P01-Summary'!M20,'Milk-Prices'!$G$10:$S$21,4,0)
 
Upvote 0

Forum statistics

Threads
1,214,889
Messages
6,122,097
Members
449,065
Latest member
albertocarrillom

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