Hello Excel Geniuses!
I am in need of some help to get the brain juices flowing on this Monday morning. Here's the scoop:
I have created a time card calculator to calculate total time worked and distribute it to regular and overtime hours. Currently I have it set to calculate if over 8 hours then add the remaining as overtime, seems simple enough. This works for a day by day basis but I also need it to run against a running total of 40 hours per week. Meaning if more than 40 hours worked, then add all remaining entries as overtime.
I have tried creating an additional column to calculate the running total and then doing a simple if/then to return a 0 if under 40 or a 1 if over 40. But I am stuck in trying to do a nested If/then to check for the 40 hours before checking for the 8 hours. Can anyone PLEASE help point me in the right direction???
Many thanks!
<tbody>
</tbody>
I am in need of some help to get the brain juices flowing on this Monday morning. Here's the scoop:
I have created a time card calculator to calculate total time worked and distribute it to regular and overtime hours. Currently I have it set to calculate if over 8 hours then add the remaining as overtime, seems simple enough. This works for a day by day basis but I also need it to run against a running total of 40 hours per week. Meaning if more than 40 hours worked, then add all remaining entries as overtime.
I have tried creating an additional column to calculate the running total and then doing a simple if/then to return a 0 if under 40 or a 1 if over 40. But I am stuck in trying to do a nested If/then to check for the 40 hours before checking for the 8 hours. Can anyone PLEASE help point me in the right direction???
Many thanks!
Name: | |||||||||||||
Date | Log in | Lunch Starts | Lunch Ends | Log Out | Regular Hrs | Overtime Hrs | Sick Hours | ||||||
Monday | 0.248611111111111 | =MROUND(B4,15/(60*24)) | 0.418055555555556 | =MROUND(D4,15/(60*24)) | 0.438888888888889 | =MROUND(F4,15/(60*24)) | 0.598611111111111 | =MROUND(H4,15/(60*24)) | =IF((((E4-C4)+(I4-G4))*24)>8,8,((E4-C4)+(I4-G4))*24) | =J4 | =IF(K4>40,1,0) | =IF(((E4-C4)+(I4-G4))*24>8, ((E4-C4)+(I4-G4))*24-8,0) | |
Tuesday | 0.166666666666667 | =MROUND(B5,15/(60*24)) | 0.334722222222222 | =MROUND(D5,15/(60*24)) | 0.357638888888889 | =MROUND(F5,15/(60*24)) | 0.440972222222222 | =MROUND(H5,15/(60*24)) | =IF((((E5-C5)+(I5-G5))*24)>8,8,((E5-C5)+(I5-G5))*24) | =K4+J5 | =IF(K5>40,1,0) | =IF(((E5-C5)+(I5-G5))*24>8, ((E5-C5)+(I5-G5))*24-8,0) | |
Wednesday | 0.254166666666667 | =MROUND(B6,15/(60*24)) | 0.419444444444444 | =MROUND(D6,15/(60*24)) | 0.440277777777778 | =MROUND(F6,15/(60*24)) | 0.602083333333333 | =MROUND(H6,15/(60*24)) | =IF((((E6-C6)+(I6-G6))*24)>8,8,((E6-C6)+(I6-G6))*24) | =K5+J6 | =IF(K6>40,1,0) | =IF(((E6-C6)+(I6-G6))*24>8, ((E6-C6)+(I6-G6))*24-8,0) | |
Thursday | 0.254166666666667 | =MROUND(B7,15/(60*24)) | 0.420138888888889 | =MROUND(D7,15/(60*24)) | 0.440972222222222 | =MROUND(F7,15/(60*24)) | 0.643055555555556 | =MROUND(H7,15/(60*24)) | =IF((((E7-C7)+(I7-G7))*24)>8,8,((E7-C7)+(I7-G7))*24) | =K6+J7 | =IF(K7>40,1,0) | =IF(((E7-C7)+(I7-G7))*24>8, ((E7-C7)+(I7-G7))*24-8,0) | |
Friday | 0.253472222222222 | =MROUND(B8,15/(60*24)) | 0.418055555555556 | =MROUND(D8,15/(60*24)) | 0.439583333333333 | =MROUND(F8,15/(60*24)) | 0.645833333333333 | =MROUND(H8,15/(60*24)) | =IF((((E8-C8)+(I8-G8))*24)>8,8,((E8-C8)+(I8-G8))*24) | =K7+J8 | =IF(K8>40,1,0) | =IF(((E8-C8)+(I8-G8))*24>8, ((E8-C8)+(I8-G8))*24-8,0) | |
Saturday | 0.215277777777778 | =MROUND(B9,15/(60*24)) | =MROUND(D9,15/(60*24)) | =MROUND(F9,15/(60*24)) | 0.377083333333333 | =MROUND(H9,15/(60*24)) | =IF((((E9-C9)+(I9-G9))*24)>8,8,((E9-C9)+(I9-G9))*24) | =K8+J9 | =IF(K9>40,1,0) | =IF(((E9-C9)+(I9-G9))*24>8, ((E9-C9)+(I9-G9))*24-8,0) | |||
Sunday | =MROUND(B10,15/(60*24)) | =MROUND(D10,15/(60*24)) | =MROUND(F10,15/(60*24)) | =MROUND(H10,15/(60*24)) | =IF((((E10-C10)+(I10-G10))*24)>8,8,((E10-C10)+(I10-G10))*24) | =K9+J10 | =IF(K10>40,1,0) | =IF(((E10-C10)+(I10-G10))*24>8, ((E10-C10)+(I10-G10))*24-8,0) | |||||
Total Hours | =SUM(J4:J10) | =SUM(M4:M10) | =SUM(N4:N10)*24 |
<tbody>
</tbody>