I am trying to look at a user log data set and assign a team based on the user name and the date. I have a seperate table with user names and the dates they were on the different teams. VLOOKUP will find the first entry for the user but I can't figure out how to have it also look at the date range. Any Suggestions or ideas?
User Time Log, trying to write a formula that will use the Team Assignment table and fill in the correct value. The expected result is in the last column for reference.
<tbody>
</tbody>
Team Assignment Table:
<tbody>
</tbody>
User Time Log, trying to write a formula that will use the Team Assignment table and fill in the correct value. The expected result is in the last column for reference.
Date | Name | Hours | Team(Formula) | Expected Team |
2/1/2016 | Amy | 5.0 | Team 1 | |
3/3/2016 | Amy | 4.5 | Team 1 | |
7/7/2016 | Amy | 6.0 | Team 2 | |
8/2/2016 | Amy | 5.0 | Team 2 | |
2/1/2016 | Bob | 4.5 | Team a | |
3/2/2016 | Bob | 6.0 | Team b | |
7/3/2016 | Bob | 7.0 | Team b | |
2/9/2016 | Jim | 6.0 | Team c | |
8/5/2016 | Jim | 2.0 | Leader |
<tbody>
</tbody>
Team Assignment Table:
Name | Start Date | End Date | Team |
Amy | 1/1/2016 | 4/1/2016 | Team 1 |
Amy | 4/2/2016 | 12/9/2016 | Team 2 |
Bob | 1/1/2016 | 3/1/2016 | Team a |
Bob | 3/2/2016 | Team b | |
Jim | 1/1/2016 | 7/1/2016 | Team c |
Jim | 7/2/2016 | Leader |
<tbody>
</tbody>