vlookup data range by date format

mdeanh5252

New Member
Joined
Sep 5, 2016
Messages
29
Hey all I have never needed to vlookup based on dates to return a result until now and i keep getting a #N/A result.
So what i want to do is lookup the item by date and return the result of the item
The equation im using is:
=vlookup(D1,A2:C4,1,false)

Cell D1 would have a date i wanted to lookup in my data range

my equation is in cell E1 to return result

My data layout is:
Itemcountdate
Oranges525/6/2017
Bananas366/8/2017
Apples759/9/2017
I moved the dates to column A and changed my row reference and the equation works fine.

Why do dates prevent return results as layed out above but when layed out in first column they return?

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
you need to address the left column, so your search in D1 could be the fruit. I think you need to use INDEX MATCH to get what you are after
 
Upvote 0

Forum statistics

Threads
1,215,377
Messages
6,124,598
Members
449,174
Latest member
chandan4057

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