How would I go about calculating reg hours, OT and DT with set rules? What I made isn't taking into account 2pm through 10pm. It's just calculating the amount of hours I have. So say for example, I clock in at 6pm and clocked out at 2am. I want reg hours = 4, OT = 2, DT = 2
Reg Hours = 2pm to 10 pm
OT = 10pm - 12am
DT = 12am+
Reg Hours = 2pm to 10 pm
OT = 10pm - 12am
DT = 12am+
Pay Calculator.xlsm | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
9 | Day of the Week↓ | Clocked In↓ | Clocked Out↓ | Reg HRs Worked↓ | OT Hours↓ | DT Hours↓ | Total Daily Hours↓ | |||||||||
10 | Monday | 6:00 PM | 2:00 AM | 8.00 | 0.00 | 0.00 | 8.00 | |||||||||
11 | Tuesday | 2:00 PM | 10:00 PM | 8.00 | 0.00 | 0.00 | 8.00 | |||||||||
12 | Wednesday | 2:00 PM | 10:00 PM | 8.00 | 0.00 | 0.00 | 8.00 | |||||||||
13 | Thursday | 2:00 PM | 10:00 PM | 8.00 | 0.00 | 0.00 | 8.00 | |||||||||
14 | Friday | 2:00 PM | 10:00 PM | 8.00 | 0.00 | 0.00 | 8.00 | |||||||||
15 | Saturday | 0.00 | 0.00 | 0.00 | ||||||||||||
16 | Sunday | 0.00 | 0.00 | |||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
L10:L14 | L10 | =IF((F10-D10+(F10<D10))*24>10,(F10-D10+(F10<D10))*24-10,0) |
N10:N14 | N10 | =SUM(H10:M10) |
L15 | L15 | =IF((F15-D15+(F15<D15))*24>8,(F15-D15+(F15<D15))*24-8,0) |
N15 | N15 | =SUM(J15:M15) |
L16 | L16 | =IF((F16-D16+(F16<D16))*24>0,(F16-D16+(F16<D16))*24,0) |
N16 | N16 | =SUM(L16) |
H10:H14 | H10 | =MIN(8,IF((F10-D10+(F10<D10))*24>1,(F10-D10+(F10<D10))*24, 0)) |
J10:J14 | J10 | =MIN(2,IF((F10-D10+(F10<D10))*24>8,(F10-D10+(F10<D10))*24-8,0)) |
J15 | J15 | =MIN(8,IF((F15-D15+(F15<D15))*24>0,(F15-D15+(F15<D15))*24,0)) |