just_lookin_009
New Member
- Joined
- Jan 16, 2014
- Messages
- 5
Hi,
I have two sheets in a workbook, I would like to lookup a persons name in sheet 1, that name has multiple entries in sheet 2 that have a date, project, and hours. I would like for a specified start and end date determine for the entries that fall into that date range what project was the majority of the hours spent and return the name of the project in sheet 1 column B. I tried a vlookup but it is giving me the first project vs. the project in the specified date range and the most hours. Not sure how to work in a Max or maybe a range? Thanks for the help!
Sheet 1:
For date Range (Start)1/1/2014 to (End)1/5/2014 <- these are each a named cell (Start) (End)
<TBODY>
</TBODY>
Result would leave out the projects that exceed the date range, and return the project name that had the most hours ie. Joe worked on Project A & B but spent more time on B
Sheet 2:
<TBODY>
</TBODY>
I have two sheets in a workbook, I would like to lookup a persons name in sheet 1, that name has multiple entries in sheet 2 that have a date, project, and hours. I would like for a specified start and end date determine for the entries that fall into that date range what project was the majority of the hours spent and return the name of the project in sheet 1 column B. I tried a vlookup but it is giving me the first project vs. the project in the specified date range and the most hours. Not sure how to work in a Max or maybe a range? Thanks for the help!
Sheet 1:
For date Range (Start)1/1/2014 to (End)1/5/2014 <- these are each a named cell (Start) (End)
A | B | Result in B: | |
1 | Joe | ? | Project B |
2 | Frank | ? | Project B |
3 | Jill | ? | Project C |
<TBODY>
</TBODY>
Result would leave out the projects that exceed the date range, and return the project name that had the most hours ie. Joe worked on Project A & B but spent more time on B
Sheet 2:
A | B | C | D | ||
1 | Joe | 1/1/2014 | 3 | Project A | |
2 | Joe | 1/2/2014 | 8 | Project B | |
3 | Frank | 1/1/2014 | 8 | Project B | |
4 | Jill | 1/1/2014 | 2 | Project C | |
5 | Joe | 1/3/2014 | 8 | Project B | |
6 | Jill | 1/2/2014 | 8 | Project A | |
7 | Joe | 1/10/2014 | 20 | Project D |
<TBODY>
</TBODY>