Overtime Formula

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
97
Office Version
  1. 2019
Platform
  1. Windows
I'm including a L2BB could someone please check it out and tell me where I'm going wrong with the overtime. I works if i use time in 08:00 til 16:30 it will show half hour overtime, but If I use 23:55 til 08:15 it doesn't show the overtime.
Book1
ABCDEFGHIJKLM
1
2
3
4
5
6
7
8
9
10
11
12Total Bi-Weekly Hour Total Hours WorkedTotal Tip Appliance HoursTotal Regular HoursTotal Overtime HoursTraining Meeting HoursTotal PTO HoursTotal FMLA HoursTotal Vacation Hours
1380.0060.0760.0760.070.000.000.000.000.00
14
15Regular Work HoursTraining / Meeting Hours
16Day of WeekOptionsTime InTime OutHours WoirkedRegular HoursOvertime HoursTime InTime OutTotal HoursPTO HoursFMLA HoursVacation Hours
17Fri 5/1911:55 PM7:59 AM8.078.070.000.000.000.000.00
18Sat 5/2011:55 PM7:55 AM8.008.000.000.000.000.000.00
19Sun 5/210.000.000.000.000.000.000.00
20Mon 5/220.000.000.000.000.000.000.00
21Tue 5/230.000.000.000.000.000.000.00
22Wed 5/2411:55 PM7:55 AM8.008.000.000.000.000.000.00
23Thu 5/2511:55 PM5:55 AM6.006.000.000.000.000.000.00
24Fri 5/2611:55 PM7:55 AM8.008.000.000.000.000.000.00
25Sat 5/2711:55 PM7:55 AM8.008.000.000.000.000.000.00
26Sun 5/280.000.000.000.000.000.000.00
27Mon 5/290.000.000.000.000.000.000.00
28Tue 5/300.000.000.000.000.000.000.00
29Wed 5/3111:55 PM7:55 AM8.008.000.000.000.000.000.00
30Thu 6/111:55 PM5:55 AM6.006.000.000.000.000.000.00
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Sheet1
Cell Formulas
RangeFormula
D13:E13D13=SUM(E17:E30)
J13:M13,F13:G13F13=SUM(F17:F30)
J17:J30,E17:E30E17=ROUND(IF((OR(C17="",D17="")),0,IF((D17<C17),((D17-C17)*24)+24,(D17-C17)*24)),2)
F17:F30F17=E17-G17
G17:G30G17=IFERROR(IF(((D17-C17)+D17-C17)*24>8,((D17-C17)+(D17-C17))*24-8,0), "")
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You need to test to be sure the end time is the next day, and if so, add 24 hours (1 day) to that value.
Mr excel questions 63.xlsm
ABCDEFG
1
2
3
4
5
6
7
8
9
10
11
12Total Bi-Weekly Hour Total Hours WorkedTotal Tip Appliance HoursTotal Regular HoursTotal Overtime Hours
138060.0666666760.0666666760.066666670
14
15Regular Work Hours
16Day of WeekOptionsTime InTime OutHours WoirkedRegular HoursOvertime Hours
172023/May/19 Fri23:5507:598.0666666678.0666666670
182023/May/20 Sat23:5507:55880
192023/May/21 Sun000
202023/May/22 Mon000
212023/May/23 Tue000
222023/May/24 Wed23:5507:55880
232023/May/25 Thu23:5505:55660
242023/May/26 Fri23:5507:55880
252023/May/27 Sat23:5507:55880
262023/May/28 Sun000
272023/May/29 Mon000
282023/May/30 Tue000
292023/May/31 Wed23:5507:55880
302023/Jun/01 Thu23:5505:55660
Robert Wyatt
Cell Formulas
RangeFormula
D13:E13D13=SUM(E17:E30)
F13:G13F13=SUM(F17:F30)
E17:E30E17=((IF(D17<C17,1,0)+A17+D17)-(A17+C17))*24
F17:F30F17=E17-G17
G17:G30G17=IFERROR(IF(((D17-C17)+D17-C17)*24>8,((D17-C17)+(D17-C17))*24-8,0), "")
 
Last edited:
Upvote 0
paste the the following into a clean sheet and review the formulas

T202309a.xlsm
ABCDEFGH
15Regular Work Hours08:00
16Day of WeekOptionsTime InTime OutHours WorkedRegular HoursOvertime Hours
1723:5507:598.0666666780.06666667
1823:5508:158.3333333380.33333333
19
2023:5507:5908:0408:0000:04
214506823:5508:1508:2008:0000:20
1e
Cell Formulas
RangeFormula
E17:E18E17=(D17-C17+(C17>D17))*24
F17:F18F17=MIN(8,E17)
G17:G18,G20:G21G17=E17-F17
E20:E21E20=(D20-C20+(C20>D20))
F20:F21F20=MIN($H$15,E20)


T202309a.xlsm
ABCDEFG
11
12Total Bi-Weekly Hour Total Hours WorkedTotal Tip Appliance HoursTotal Regular HoursTotal Overtime Hours
138024.424.40240.4
14
15Regular Work Hours
16Day of WeekOptionsTime InTime OutHours WoirkedRegular HoursOvertime Hours
174506523:5507:598.0780.0666667
184506623:5507:558.0080
194506723:5508:158.3380.3333333
20
1f
Cell Formulas
RangeFormula
D13D13=SUM(E17:E19)
E13:G13E13=SUM(E17:E19)
E17:E19E17=(D17-C17+(C17>D17))*24
F17:F19F17=MIN(8,E17)
G17:G19G17=E17-F17
 
Last edited:
Upvote 1
Solution

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top