Greetings, fellow Excel users. I'm hoping one of you kind people can give me a hand with what I assume is a relatively simple problem, but one I haven't yet been able to crack on my own. I'm trying to use a VLOOKUP function to populate paid time off hours for my employees into a spreadsheet based on reports that I feed into Excel. The problem I am having is when there is more than one result per employee ID. I need a way to get Excel to add up the number of hours when there is more than one entry per employee ID.
For reference, this is the function I am currently using. "PTO" is the name I have defined for the section of the spreadsheet that I dump the report into.
=IF(ISNA(VLOOKUP(A35,PTO,3,FALSE)),"",VLOOKUP(A35,PTO,3,FALSE))
This function does exactly what I want it to do if there are 0 or 1 result per employee ID, but doesn't do anything with additional entries for the same employee. Any help you guys could provide on this would be GREATLY appreciated.
I have used the HTML maker suggested on your forum to create an example of the data I am using. Hopefully this will help:
Thanks in advance!!
For reference, this is the function I am currently using. "PTO" is the name I have defined for the section of the spreadsheet that I dump the report into.
=IF(ISNA(VLOOKUP(A35,PTO,3,FALSE)),"",VLOOKUP(A35,PTO,3,FALSE))
This function does exactly what I want it to do if there are 0 or 1 result per employee ID, but doesn't do anything with additional entries for the same employee. Any help you guys could provide on this would be GREATLY appreciated.
I have used the HTML maker suggested on your forum to create an example of the data I am using. Hopefully this will help:
Example.xls | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | EmpID | Date | Hours | |||
2 | 102 | AUG-01-2004 | 8.00 | |||
3 | 102 | AUG-05-2004 | 4.50 | |||
4 | 99 | AUG-06-2004 | 8.00 | |||
5 | 228 | JUL-28-2004 | 8.00 | |||
6 | 99 | JUL-30-2004 | 8.00 | |||
7 | 102 | JUL-30-2004 | 8.00 | |||
8 | 357 | JUL-30-2004 | 8.00 | |||
9 | 456 | JUL-30-2004 | 8.00 | |||
10 | ||||||
PTO |
Thanks in advance!!