austinandreikurt
Board Regular
- Joined
- Aug 25, 2020
- Messages
- 91
- Office Version
- 2016
- Platform
- Windows
Hi,
I need help to combine both formula's into one. In simple term, this is a VLOOKUP with 2 criteria but I can't merge cells to simplify it because the second criteria is a date range, thus I need a LOOKUP.
For example, I have this in a table:
Say I have the Employee ID list in Column A then date range in Column B and I need to put the formula to get the rates in Column C.
Then if I am looking for the rate of Employee 1XXX001 (Cell A2) as of 20-Feb-21 (Cell B2), then the formula in Cell C2 should result to 27.57 because the 28.26 is only effective since 12-Mar-21 onwards.
Another sample is for Employee 1XXX005 (Cell A3) with date 30-Jun-21 (Cell B3), rate I need to get in Cell C3 is 30.55.
I need help to combine both formula's into one. In simple term, this is a VLOOKUP with 2 criteria but I can't merge cells to simplify it because the second criteria is a date range, thus I need a LOOKUP.
For example, I have this in a table:
Employee ID | Date of Change (CheckDate) | RATE |
1XXX001 | 01-Jan-20 | 27.57 |
1XXX001 | 12-Mar-21 | 28.26 |
1XXX002 | 01-Jan-20 | 27.57 |
1XXX002 | 12-Mar-21 | 28.26 |
1XXX005 | 01-Jan-20 | 27.57 |
1XXX005 | 09-Apr-21 | 28.26 |
1XXX005 | 20-Jun-21 | 30.55 |
Then if I am looking for the rate of Employee 1XXX001 (Cell A2) as of 20-Feb-21 (Cell B2), then the formula in Cell C2 should result to 27.57 because the 28.26 is only effective since 12-Mar-21 onwards.
Another sample is for Employee 1XXX005 (Cell A3) with date 30-Jun-21 (Cell B3), rate I need to get in Cell C3 is 30.55.
Employee ID | Date | RATE |
1XXX001 | 20-Feb-21 | 27.57 |
1XXX005 | 30-Jun-21 | 30.55 |
1XXX002 | 02-Jan-20 | 27.57 |
1XXX005 | 09-Apr-21 | 28.26 |