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!
[TABLE="width: 1826"]
<tbody>[TR]
[TD]Name:[/TD]
[TD="colspan: 9"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Log in[/TD]
[TD][/TD]
[TD]Lunch Starts[/TD]
[TD][/TD]
[TD]Lunch Ends[/TD]
[TD][/TD]
[TD]Log Out[/TD]
[TD][/TD]
[TD]Regular Hrs[/TD]
[TD][/TD]
[TD][/TD]
[TD]Overtime Hrs[/TD]
[TD]Sick Hours[/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD]0.248611111111111[/TD]
[TD]=MROUND(B4,15/(60*24))[/TD]
[TD]0.418055555555556[/TD]
[TD]=MROUND(D4,15/(60*24))[/TD]
[TD]0.438888888888889[/TD]
[TD]=MROUND(F4,15/(60*24))[/TD]
[TD]0.598611111111111[/TD]
[TD]=MROUND(H4,15/(60*24))[/TD]
[TD]=IF((((E4-C4)+(I4-G4))*24)>8,8,((E4-C4)+(I4-G4))*24)[/TD]
[TD]=J4[/TD]
[TD]=IF(K4>40,1,0)[/TD]
[TD]=IF(((E4-C4)+(I4-G4))*24>8, ((E4-C4)+(I4-G4))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tuesday[/TD]
[TD]0.166666666666667[/TD]
[TD]=MROUND(B5,15/(60*24))[/TD]
[TD]0.334722222222222[/TD]
[TD]=MROUND(D5,15/(60*24))[/TD]
[TD]0.357638888888889[/TD]
[TD]=MROUND(F5,15/(60*24))[/TD]
[TD]0.440972222222222[/TD]
[TD]=MROUND(H5,15/(60*24))[/TD]
[TD]=IF((((E5-C5)+(I5-G5))*24)>8,8,((E5-C5)+(I5-G5))*24)[/TD]
[TD]=K4+J5[/TD]
[TD]=IF(K5>40,1,0)[/TD]
[TD]=IF(((E5-C5)+(I5-G5))*24>8, ((E5-C5)+(I5-G5))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wednesday[/TD]
[TD]0.254166666666667[/TD]
[TD]=MROUND(B6,15/(60*24))[/TD]
[TD]0.419444444444444[/TD]
[TD]=MROUND(D6,15/(60*24))[/TD]
[TD]0.440277777777778[/TD]
[TD]=MROUND(F6,15/(60*24))[/TD]
[TD]0.602083333333333[/TD]
[TD]=MROUND(H6,15/(60*24))[/TD]
[TD]=IF((((E6-C6)+(I6-G6))*24)>8,8,((E6-C6)+(I6-G6))*24)[/TD]
[TD]=K5+J6[/TD]
[TD]=IF(K6>40,1,0)[/TD]
[TD]=IF(((E6-C6)+(I6-G6))*24>8, ((E6-C6)+(I6-G6))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thursday[/TD]
[TD]0.254166666666667[/TD]
[TD]=MROUND(B7,15/(60*24))[/TD]
[TD]0.420138888888889[/TD]
[TD]=MROUND(D7,15/(60*24))[/TD]
[TD]0.440972222222222[/TD]
[TD]=MROUND(F7,15/(60*24))[/TD]
[TD]0.643055555555556[/TD]
[TD]=MROUND(H7,15/(60*24))[/TD]
[TD]=IF((((E7-C7)+(I7-G7))*24)>8,8,((E7-C7)+(I7-G7))*24)[/TD]
[TD]=K6+J7[/TD]
[TD]=IF(K7>40,1,0)[/TD]
[TD]=IF(((E7-C7)+(I7-G7))*24>8, ((E7-C7)+(I7-G7))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD]0.253472222222222[/TD]
[TD]=MROUND(B8,15/(60*24))[/TD]
[TD]0.418055555555556[/TD]
[TD]=MROUND(D8,15/(60*24))[/TD]
[TD]0.439583333333333[/TD]
[TD]=MROUND(F8,15/(60*24))[/TD]
[TD]0.645833333333333[/TD]
[TD]=MROUND(H8,15/(60*24))[/TD]
[TD]=IF((((E8-C8)+(I8-G8))*24)>8,8,((E8-C8)+(I8-G8))*24)[/TD]
[TD]=K7+J8[/TD]
[TD]=IF(K8>40,1,0)[/TD]
[TD]=IF(((E8-C8)+(I8-G8))*24>8, ((E8-C8)+(I8-G8))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD]0.215277777777778[/TD]
[TD]=MROUND(B9,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(D9,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(F9,15/(60*24))[/TD]
[TD]0.377083333333333[/TD]
[TD]=MROUND(H9,15/(60*24))[/TD]
[TD]=IF((((E9-C9)+(I9-G9))*24)>8,8,((E9-C9)+(I9-G9))*24)[/TD]
[TD]=K8+J9[/TD]
[TD]=IF(K9>40,1,0)[/TD]
[TD]=IF(((E9-C9)+(I9-G9))*24>8, ((E9-C9)+(I9-G9))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sunday[/TD]
[TD][/TD]
[TD]=MROUND(B10,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(D10,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(F10,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(H10,15/(60*24))[/TD]
[TD]=IF((((E10-C10)+(I10-G10))*24)>8,8,((E10-C10)+(I10-G10))*24)[/TD]
[TD]=K9+J10[/TD]
[TD]=IF(K10>40,1,0)[/TD]
[TD]=IF(((E10-C10)+(I10-G10))*24>8, ((E10-C10)+(I10-G10))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Total Hours[/TD]
[TD][/TD]
[TD]=SUM(J4:J10)[/TD]
[TD][/TD]
[TD][/TD]
[TD]=SUM(M4:M10)[/TD]
[TD]=SUM(N4:N10)*24[/TD]
[/TR]
</tbody>[/TABLE]
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!
[TABLE="width: 1826"]
<tbody>[TR]
[TD]Name:[/TD]
[TD="colspan: 9"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Log in[/TD]
[TD][/TD]
[TD]Lunch Starts[/TD]
[TD][/TD]
[TD]Lunch Ends[/TD]
[TD][/TD]
[TD]Log Out[/TD]
[TD][/TD]
[TD]Regular Hrs[/TD]
[TD][/TD]
[TD][/TD]
[TD]Overtime Hrs[/TD]
[TD]Sick Hours[/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD]0.248611111111111[/TD]
[TD]=MROUND(B4,15/(60*24))[/TD]
[TD]0.418055555555556[/TD]
[TD]=MROUND(D4,15/(60*24))[/TD]
[TD]0.438888888888889[/TD]
[TD]=MROUND(F4,15/(60*24))[/TD]
[TD]0.598611111111111[/TD]
[TD]=MROUND(H4,15/(60*24))[/TD]
[TD]=IF((((E4-C4)+(I4-G4))*24)>8,8,((E4-C4)+(I4-G4))*24)[/TD]
[TD]=J4[/TD]
[TD]=IF(K4>40,1,0)[/TD]
[TD]=IF(((E4-C4)+(I4-G4))*24>8, ((E4-C4)+(I4-G4))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tuesday[/TD]
[TD]0.166666666666667[/TD]
[TD]=MROUND(B5,15/(60*24))[/TD]
[TD]0.334722222222222[/TD]
[TD]=MROUND(D5,15/(60*24))[/TD]
[TD]0.357638888888889[/TD]
[TD]=MROUND(F5,15/(60*24))[/TD]
[TD]0.440972222222222[/TD]
[TD]=MROUND(H5,15/(60*24))[/TD]
[TD]=IF((((E5-C5)+(I5-G5))*24)>8,8,((E5-C5)+(I5-G5))*24)[/TD]
[TD]=K4+J5[/TD]
[TD]=IF(K5>40,1,0)[/TD]
[TD]=IF(((E5-C5)+(I5-G5))*24>8, ((E5-C5)+(I5-G5))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wednesday[/TD]
[TD]0.254166666666667[/TD]
[TD]=MROUND(B6,15/(60*24))[/TD]
[TD]0.419444444444444[/TD]
[TD]=MROUND(D6,15/(60*24))[/TD]
[TD]0.440277777777778[/TD]
[TD]=MROUND(F6,15/(60*24))[/TD]
[TD]0.602083333333333[/TD]
[TD]=MROUND(H6,15/(60*24))[/TD]
[TD]=IF((((E6-C6)+(I6-G6))*24)>8,8,((E6-C6)+(I6-G6))*24)[/TD]
[TD]=K5+J6[/TD]
[TD]=IF(K6>40,1,0)[/TD]
[TD]=IF(((E6-C6)+(I6-G6))*24>8, ((E6-C6)+(I6-G6))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thursday[/TD]
[TD]0.254166666666667[/TD]
[TD]=MROUND(B7,15/(60*24))[/TD]
[TD]0.420138888888889[/TD]
[TD]=MROUND(D7,15/(60*24))[/TD]
[TD]0.440972222222222[/TD]
[TD]=MROUND(F7,15/(60*24))[/TD]
[TD]0.643055555555556[/TD]
[TD]=MROUND(H7,15/(60*24))[/TD]
[TD]=IF((((E7-C7)+(I7-G7))*24)>8,8,((E7-C7)+(I7-G7))*24)[/TD]
[TD]=K6+J7[/TD]
[TD]=IF(K7>40,1,0)[/TD]
[TD]=IF(((E7-C7)+(I7-G7))*24>8, ((E7-C7)+(I7-G7))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD]0.253472222222222[/TD]
[TD]=MROUND(B8,15/(60*24))[/TD]
[TD]0.418055555555556[/TD]
[TD]=MROUND(D8,15/(60*24))[/TD]
[TD]0.439583333333333[/TD]
[TD]=MROUND(F8,15/(60*24))[/TD]
[TD]0.645833333333333[/TD]
[TD]=MROUND(H8,15/(60*24))[/TD]
[TD]=IF((((E8-C8)+(I8-G8))*24)>8,8,((E8-C8)+(I8-G8))*24)[/TD]
[TD]=K7+J8[/TD]
[TD]=IF(K8>40,1,0)[/TD]
[TD]=IF(((E8-C8)+(I8-G8))*24>8, ((E8-C8)+(I8-G8))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD]0.215277777777778[/TD]
[TD]=MROUND(B9,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(D9,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(F9,15/(60*24))[/TD]
[TD]0.377083333333333[/TD]
[TD]=MROUND(H9,15/(60*24))[/TD]
[TD]=IF((((E9-C9)+(I9-G9))*24)>8,8,((E9-C9)+(I9-G9))*24)[/TD]
[TD]=K8+J9[/TD]
[TD]=IF(K9>40,1,0)[/TD]
[TD]=IF(((E9-C9)+(I9-G9))*24>8, ((E9-C9)+(I9-G9))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sunday[/TD]
[TD][/TD]
[TD]=MROUND(B10,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(D10,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(F10,15/(60*24))[/TD]
[TD][/TD]
[TD]=MROUND(H10,15/(60*24))[/TD]
[TD]=IF((((E10-C10)+(I10-G10))*24)>8,8,((E10-C10)+(I10-G10))*24)[/TD]
[TD]=K9+J10[/TD]
[TD]=IF(K10>40,1,0)[/TD]
[TD]=IF(((E10-C10)+(I10-G10))*24>8, ((E10-C10)+(I10-G10))*24-8,0)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Total Hours[/TD]
[TD][/TD]
[TD]=SUM(J4:J10)[/TD]
[TD][/TD]
[TD][/TD]
[TD]=SUM(M4:M10)[/TD]
[TD]=SUM(N4:N10)*24[/TD]
[/TR]
</tbody>[/TABLE]