Lookup between two dates and a vlookup

sarao18592

New Member
Joined
Mar 4, 2021
Messages
12
Office Version
  1. 2019
  2. 2016
Platform
  1. MacOS
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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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),"")
 
Upvote 0
Solution
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
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,956
Latest member
JPav

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