Hello Excel Experts,
I have two tables in my excel sheet. First table is a labor detail containing date, employee ID, and employee name. This table contains transactional items when an employee enters their time.
The other table contains employee rate history. This table outlines employee ID, Employee name, hourly rate, effective date, and ineffective date.
What i'm trying to do is pull the employee hourly rate at the time the entry was made on the labor detail table. I'm using the following formula but it keeps returning result to 0.
I'm stuck and need help!
I have two tables in my excel sheet. First table is a labor detail containing date, employee ID, and employee name. This table contains transactional items when an employee enters their time.
The other table contains employee rate history. This table outlines employee ID, Employee name, hourly rate, effective date, and ineffective date.
What i'm trying to do is pull the employee hourly rate at the time the entry was made on the labor detail table. I'm using the following formula but it keeps returning result to 0.
I'm stuck and need help!
Labor Detail.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Date | Employee ID | Employee | Labor Rate (lookup) | ||
2 | 4/1/2021 | 100 | Employee 1 | 0 | ||
3 | 4/2/2021 | 200 | Employee 2 | 0 | ||
4 | 4/3/2021 | 200 | Employee 2 | 0 | ||
5 | 4/4/2021 | 200 | Employee 2 | 0 | ||
6 | 4/5/2021 | 200 | Employee 2 | 0 | ||
7 | 4/6/2021 | 300 | Employee 3 | 0 | ||
8 | 4/7/2021 | 300 | Employee 3 | 0 | ||
9 | 4/8/2021 | 300 | Employee 3 | 0 | ||
10 | 4/9/2021 | 300 | Employee 3 | 0 | ||
11 | 4/10/2021 | 100 | Employee 1 | 0 | ||
12 | 4/11/2021 | 300 | Employee 3 | 0 | ||
13 | 4/12/2021 | 300 | Employee 3 | 0 | ||
14 | 4/13/2021 | 200 | Employee 2 | 0 | ||
15 | 4/14/2021 | 300 | Employee 3 | 0 | ||
16 | 4/15/2021 | 100 | Employee 1 | 0 | ||
17 | 4/16/2021 | 100 | Employee 1 | 0 | ||
18 | 4/17/2021 | 100 | Employee 1 | 0 | ||
19 | 4/18/2021 | 100 | Employee 1 | 0 | ||
20 | 4/19/2021 | 100 | Employee 1 | 0 | ||
21 | 4/20/2021 | 100 | Employee 1 | 0 | ||
22 | 4/21/2021 | 100 | Employee 1 | 0 | ||
23 | 4/22/2021 | 300 | Employee 3 | 0 | ||
24 | 4/23/2021 | 300 | Employee 3 | 0 | ||
25 | 4/24/2021 | 300 | Employee 3 | 0 | ||
26 | 4/25/2021 | 300 | Employee 3 | 0 | ||
27 | 4/26/2021 | 300 | Employee 3 | 0 | ||
28 | 4/27/2021 | 300 | Employee 3 | 0 | ||
29 | 4/28/2021 | 300 | Employee 3 | 0 | ||
30 | 4/29/2021 | 300 | Employee 3 | 0 | ||
31 | 4/30/2021 | 300 | Employee 3 | 0 | ||
32 | 5/1/2021 | 100 | Employee 1 | 0 | ||
33 | 5/2/2021 | 300 | Employee 3 | 0 | ||
34 | 5/3/2021 | 300 | Employee 3 | 0 | ||
35 | 5/4/2021 | 300 | Employee 3 | 0 | ||
36 | 5/5/2021 | 300 | Employee 3 | 0 | ||
37 | 5/6/2021 | 300 | Employee 3 | 0 | ||
38 | 5/7/2021 | 300 | Employee 3 | 0 | ||
39 | 5/8/2021 | 300 | Employee 3 | 0 | ||
40 | 5/9/2021 | 100 | Employee 1 | 0 | ||
Labor Detail |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D40 | D2 | =SUMIFS(Table4[Rate],Table4[Employee ID],[@[Employee ID]],Table4[Effective Date],">="&[@Date],Table4[Ineffective Date],"<="&[@Date]) |
Labor Detail.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Employee ID | Employee | Rate | Effective Date | Ineffective Date | ||
2 | 100 | Employee 1 | $ 25.00 | 4/1/2021 | 9/30/2021 | ||
3 | 200 | Employee 2 | $ 30.00 | 4/1/2021 | 6/30/2021 | ||
4 | 200 | Employee 2 | $ 40.00 | 7/1/2021 | 9/30/2021 | ||
5 | 300 | Employee 3 | $ 20.00 | 4/1/2021 | 5/30/2021 | ||
6 | 300 | Employee 3 | $ 45.00 | 6/1/2021 | 6/25/2021 | ||
7 | 300 | Employee 3 | $ 60.00 | 6/26/2021 | 9/30/2021 | ||
Rate History |