Need help with lookup between two workbooks using multiple criteria

Redd_Dayspring

New Member
Joined
May 24, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello. I have been wracking my brain with this (not hard, not the greatest with Excel).
I have two workbooks.
I need to use the Employee ID (B2) and Transaction Date (C2) from Workbook A as the criteria to search and match up with the Proposed Start and Propose End date range in Workbook B, columns J:K.
Once the date is found within the rate, I need to locate and return the corresponding proposed rate in column L and place it into Workbook A.

Hopefully this makes sense..
Is this feasible?




Workbook A
Workbook B
 

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
the transaction dates in your example are not in the range of dates for those employees on the other sheet.
but i added some example to show you how you can do this.

Book1
ABCDEF
1EmployeeEmployee IDTransaction DateReport DateHire DateRate
2Smith, John4563/3/20203/3/20209/18/2014#N/A
3Adams, John78910/30/201910/31/20193/16/1998#N/A
4Washington, George10237/20/20207/20/20204/15/2020#N/A
5Smith, John4567/3/20203/3/20209/18/201475.70
6Adams, John78910/30/202010/31/20193/16/199872.08
7Adams, John78910/30/202210/31/20193/16/199874.78
Sheet1
Cell Formulas
RangeFormula
F2:F7F2=INDEX(Sheet2!$F$2:$F$8,MATCH(1,((Sheet2!$A$2:$A$8=B2)*(Sheet2!$E$2:$E$8>=C2)*(Sheet2!$D$2:$D$8<=C2)),0))

-------------------
Book1
ABCDEF
1Employee IDLegal NameCurrent Proposed StartProposed EndProposed
2456John Smith74.473/23/20205/22/202375.70
3789John Adams71.103/23/20204/5/202172.08
4789John Adams72.084/5/20212/7/202272.68
5789John Adams72.682/7/20224/4/202277.00
6789John Adams77.004/4/20224/18/202277.66
7789John Adams77.664/18/202212/22/202274.78
8789John Adams74.7812/22/20225/22/202374.78
Sheet2
 
Upvote 1
Solution

Forum statistics

Threads
1,215,391
Messages
6,124,673
Members
449,178
Latest member
Emilou

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