TAPS_MikeDion
Well-known Member
- Joined
- Aug 14, 2009
- Messages
- 622
- Office Version
- 2011
- Platform
- MacOS
Hey all,
I'm assuming there's a way to do this, but I'm not sure how to go about it. Any help would be greatly appreciated. My guess is that this would be a VBA project and I'm fine with that.
I have two (2) workbooks. One named "Missed Work" and the other "Payroll Totals."
The columns in the workbooks are as follows:
"Missed Work"
A = Last Name of the employee who missed work
B = First Name of the employee who missed work
E = Location the work was missed. If the word COVID is in the cell, then it was a COVID job, otherwise it was a Regular job
F = # of hours covered
G = Last Name of the employee who covered the work
H = First Name of the employee who covered the work
"Payroll Totals"
B = Last Names of the employees
C = First Names of the employees
I = COVID Cover Hours
J = Regular Cover Hours
What I'm trying to do is have the Payroll Totals auto-fill columns I and/or J with the number of hours from the Missed Work sheet that were covered by another employee.
For example:
Data in the Missed Work sheet
Data in the Payroll Totals sheet:
Please and thank you to anyone able to assist on this!
-Mike
I'm assuming there's a way to do this, but I'm not sure how to go about it. Any help would be greatly appreciated. My guess is that this would be a VBA project and I'm fine with that.
I have two (2) workbooks. One named "Missed Work" and the other "Payroll Totals."
The columns in the workbooks are as follows:
"Missed Work"
A = Last Name of the employee who missed work
B = First Name of the employee who missed work
E = Location the work was missed. If the word COVID is in the cell, then it was a COVID job, otherwise it was a Regular job
F = # of hours covered
G = Last Name of the employee who covered the work
H = First Name of the employee who covered the work
"Payroll Totals"
B = Last Names of the employees
C = First Names of the employees
I = COVID Cover Hours
J = Regular Cover Hours
What I'm trying to do is have the Payroll Totals auto-fill columns I and/or J with the number of hours from the Missed Work sheet that were covered by another employee.
For example:
Data in the Missed Work sheet
A | B | E | F | G | H |
LAST NAME | FIRST NAME | LOCATION | HOURS | COVERED BY (LAST NAME) | COVERED BY (FIRST NAME) |
Doe | Jane | Location A - COVID | 5.00 | Smith | Jim |
Rivera | Carlos | Location D | 3.00 | Jones | Mary |
Data in the Payroll Totals sheet:
B | C | I | J |
LAST NAME | FIRST NAME | COVID COVER HOURS | REGULAR COVER HOURS |
Barnes | Cindy | ||
Jones | Mary | 3.00 | |
Mora | Pablo | ||
Smith | Jim | 5.00 |
Please and thank you to anyone able to assist on this!
-Mike
Last edited by a moderator: