Hi, I have hours for the week from F to X. Y and Z i have formulas inside to add up the week. The thing is if someone goes over 40 hours for the week then they get the overtime.
If its under 40 hours for the week. Then nothing happens to that row and you can see below in results Mike stays the same.
What i am doing now is i have to go through each person and break it out. I would like maybe a macro to do this as there are so many more people. You can see in the results how i break it down starting with the first day. like Jeff on Tuesday is 8 and 2. Marco Monday 8 and 2 Tuesday 8 and 2. All the ST columns shouldn't go over 8. The rest goes into overtime for that day as long as Y is over 40. Once Y hits 40 that's it. Row stays the same.
In short version. I need to break each person out to get overtime as long as they go over 40 hours for the week. If not then that row stays the same. DT in yellow or not yellow doesn't get touched ever. it will always be blank. No one does double time. Any help would be great.
Sheet 1
Results
If its under 40 hours for the week. Then nothing happens to that row and you can see below in results Mike stays the same.
What i am doing now is i have to go through each person and break it out. I would like maybe a macro to do this as there are so many more people. You can see in the results how i break it down starting with the first day. like Jeff on Tuesday is 8 and 2. Marco Monday 8 and 2 Tuesday 8 and 2. All the ST columns shouldn't go over 8. The rest goes into overtime for that day as long as Y is over 40. Once Y hits 40 that's it. Row stays the same.
In short version. I need to break each person out to get overtime as long as they go over 40 hours for the week. If not then that row stays the same. DT in yellow or not yellow doesn't get touched ever. it will always be blank. No one does double time. Any help would be great.
Sheet 1
Test.xlsx | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |||
1 | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday | WEEKLY TOTALS | |||||||||||||||||||||
2 | |||||||||||||||||||||||||||||
3 | No. | Trade | ID | JOB | ST | OT | DT | ST | OT | DT | ST | OT | DT | ST | OT | DT | ST | OT | DT | ST | OT | ST | OT | ST | OT | DT | |||
4 | 1 | Jeff | Super | 45 | 152 23rd Street | 5.0 | 10.0 | 8.0 | 8.0 | 13.0 | 2.0 | 8.0 | 54.0 | - | - | ||||||||||||||
5 | 2 | Marco | Operator | 63 | 152 23rd Street | 10.0 | 10.0 | 9.0 | 6.0 | 8.0 | 4.0 | 47.0 | - | - | |||||||||||||||
6 | 3 | Mike | Operator | 121 | 152 23rd Street | 6.0 | 8.0 | 6.0 | 8.0 | 5.0 | 33.0 | - | - | ||||||||||||||||
Data |
Results
Results.xlsx | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |||
1 | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday | WEEKLY TOTALS | |||||||||||||||||||||
2 | |||||||||||||||||||||||||||||
3 | No. | Trade | ID | JOB | ST | OT | DT | ST | OT | DT | ST | OT | DT | ST | OT | DT | ST | OT | DT | ST | OT | ST | OT | ST | OT | DT | |||
4 | 1 | Jeff | Super | 45 | 152 23rd Street | 5.0 | 8.0 | 2.0 | 8.0 | 8.0 | 8.0 | 5.0 | 2.0 | 3.0 | 5.0 | 40.0 | 14.0 | - | |||||||||||
5 | 2 | Marco | Operator | 63 | 152 23rd Street | 8.0 | 2.0 | 8.0 | 2.0 | 8.0 | 1.0 | 6.0 | 8.0 | 2.0 | 2.0 | 40.0 | 7.0 | - | |||||||||||
6 | 3 | Mike | Operator | 121 | 152 23rd Street | 6.0 | 8.0 | 6.0 | 8.0 | 5.0 | 33.0 | - | - | ||||||||||||||||
Data |