# Lookup between two dates and a vlookup

#### sarao18592

##### New Member
Hi, I currently have 2 sheets.
In sheet 1: I have the start date in A, End date in B and Car number in C.
In sheet 2: I have the date in C, Car number in F and name in G.

I need the name from Sheet 2 in Column D of Sheet 1.
If the date in Sheet 2(C) falls between the Start Date and End Date (sheet 1)
and the car number in Sheet 1(C) matches the car number in Sheet 1(F)

### Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

#### Alex Blakenburg

##### Well-known Member
See if this works for you.

20210402 MultiCriteria Lookup Txt No Xlookup.xlsx
ABCD
1
2
3
4Start DateEnd DateCar noName
51/01/202121/01/2021ABC123Name_ABC123
6
7
Sheet1
Cell Formulas
RangeFormula
D5D5=IFERROR(LOOKUP(2,1/((A5<=Sheet2!\$C\$5:\$C\$10)*(B5>=Sheet2!\$C\$5:\$C\$10)*(C5=Sheet2!\$F\$5:\$F\$10)),Sheet2!\$G\$5:\$G\$10),"")

#### sarao18592

##### New Member
See if this works for you.

20210402 MultiCriteria Lookup Txt No Xlookup.xlsx
ABCD
1
2
3
4Start DateEnd DateCar noName
51/01/202121/01/2021ABC123Name_ABC123
6
7
Sheet1
Cell Formulas
RangeFormula
D5D5=IFERROR(LOOKUP(2,1/((A5<=Sheet2!\$C\$5:\$C\$10)*(B5>=Sheet2!\$C\$5:\$C\$10)*(C5=Sheet2!\$F\$5:\$F\$10)),Sheet2!\$G\$5:\$G\$10),"")
Thank you!
This worked perfectly

#### Alex Blakenburg

##### Well-known Member
Glad I could help. Thanks for letting me know it worked for you.

Replies
1
Views
41
Replies
4
Views
90
Replies
11
Views
174
Replies
1
Views
39
Replies
0
Views
222

1,130,124
Messages
5,640,249
Members
417,131
Latest member
Seanr19871

### 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?

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