Time Formula

rkramapo

New Member
Joined
Feb 28, 2024
Messages
11
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi- I need help with a formula for time. I wanted to see how to edit the formula so that it takes into account 1/2 hour break for every 5 hours.

BID Schedule 2025 BTI.xls
ABCDEFGH
41Employee'sFridaySaturday
42 NameShiftHoursShiftHours
43Super7:30 AM4:00 PM8.008:00 AM4:00 PM7.50
44Super0.000.00
45Super4:00 PM12:15 AM7.754:00 PM11:30 PM7.00
46Cash 17:00 AM3:30 PM8.009:00 AM3:30 PM6.00
47Cash 20.000.00
48Cash 33:00 PM11:30 PM8.003:00 PM10:30 PM7.00
49FSW 17:30 AM3:30 PM7.508:30 AM4:00 PM7.00
50FSW 29:00 AM4:00 PM6.509:00 AM4:15 PM6.75
51FSW 30.000.00
52FSW 44:00 PM11:45 PM7.250.00
53FSW 50.003:30 PM10:30 PM6.50
54FSW612:00 PM8:30 PM8.0012:00 PM8:30 PM8.00
55FSW 74:00 PM11:45 PM7.254:00 PM11:00 PM6.50
56Grill 16:30 AM3:00 PM8.000.00
57Grill 212:00 PM8:30 PM8.000.00
58Grill 30.009:00 AM5:00 PM7.50
59Grill 44:00 PM11:45 PM7.250.00
60Grill 54:00 PM11:45 PM7.250.00
61Grill 60.003:30 PM11:45 PM7.75
62Grill 70.008:00 AM5:00 PM8.50
63Grill 84:00 PM11:45 PM7.253:30 PM11:45 PM7.75
64Grill 99:00 AM5:30 PM8.000.00
65Cook 16:30 AM3:00 PM8.000.00
66Cook 28:30 AM5:00 PM8.000.00
67Cook 312:00 PM7:30 PM7.008:00 AM6:30 PM10.00
Schedule
Cell Formulas
RangeFormula
E43:E67,H43:H67E43=IF(D43*24-C43*24<5, D43*24-C43*24, D43*24-C43*24-0.5)
 
What are the expected results?
Consider
Time 2023.xlsm
ABCDE
41Employee'sFriday
42NameShiftHours
43Super07:3016:008
44a07:3022:4513.75
45b08:0018:309.5
46
3c
Cell Formulas
RangeFormula
E43:E45E43=LET(t,(D43-C43)*24, IF(t<5,t,t-INT(t/5)*0.5))
 
Upvote 0

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