Total hours minus 30 minutes

dandel90

New Member
Joined
Jul 24, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Pleeaasee help. I am new to excel. I am trying to make a work schedule (roster) that has there weekly shift times wed-tues. I'm wanting my total column to equal hours worked for the week minus 30 unites if worked over 5hours for a shift. I have it calculating the hours for the week hoping there is a way to do it with the half taken off for each day over 5. If that makes sense.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
So everyone who is working more than 5:00 will have 30 minutes less counted?
Am I right? like: 6:15->5:45 ; 8:00 -> 7:30 and ... 5:15->4:45?
if it is the case, then use such approach:
Excel Formula:
=if(your_formula>TIMEVALUE("05:00:00"),your_formula-TIMEVALUE("00:30:00"),your_formula)
or shorter:
Excel Formula:
=if(your_formula>5/24,your_formula-1/48,your_formula)

By your formula i mean a formula used to calculate time worked each day (You probably calculate it as a difference of Time_out and Time_in each day.

Or you can do this in final column, like you have in I2:
Excel Formula:
=SUM(B2:H2)
a sum of times for a whole week, then modified formula will be:
Excel Formula:
=SUM(if(B2:H2>5/24,B2:H2-1/48,B2:H2))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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