Hello,
I have Tab A with Employee IDs [a], Start Date [b], End Date [c], Location [d]. Employee's appear multiple times with different start and end dates and location may vary or stay the same. On Tab B I have Employee ID [a], Start Date [b], End Date [c], Salary [d]. And the same rule applies as Tab A, they may appear multiple times with the Start & End Dates and salary my change or stay the same.
I would like a formula or VBA that searches for the ID in A2 from the array TAB b a2:d4, finds the row where the date falls within the start & end date on Tab a, and returns the salary.
Tab A
ID | START | END | LOCATION | SALARY
1234 | 01/01/2014 | 06/16/2014 | DENVER | 50,000
1234 | 06/17/2014 | 09/30/2014 | ASPEN | 53,000
1234 | 10/01/2014 | 12/31/2014 | ASPEN | 53,000
3456 | 01/01/2014 | 12/31/2014 | ASPEN | 20,000
Tab B
ID | START | END | SALARY
1234 | 01/01/2014 | 06/16/2014 | 50,000
1234 | 06/17/2014 | 12/31/2014 | 53,000
3456 | 03/01/2014 | 12/31/2014 | 20,000
Thanks!
Bookmarks