Need to know how to remove 30 minutes if number hits 8 hours - For a work schedule

avrilb546

New Member
Joined
Jun 9, 2019
Messages
2
Hi there. I'm absolutely no expert on excel. But, I'm a new manager and need to create a schedule for the team to use. I want to include the 30 minute break to make calculations easier for my boss. We work on a two week schedule (Mon-Sun) and I don't want to have 2 sections blocked off for breaks. I want to just create a part of the formula that automatically deducts a half hour break if someones hours reach or exceed 8 hours. Here is what two days looks like, and the string of data I have now.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]A3[/TD]
[TD]B3[/TD]
[TD]D3[/TD]
[TD]E3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Tuesday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD]Time Out[/TD]
[TD]Time In[/TD]
[TD]Time Out[/TD]
[TD]Total Hours[/TD]
[/TR]
[TR]
[TD]10:00[/TD]
[TD]13:00[/TD]
[TD]10:00[/TD]
[TD]18:00[/TD]
[TD]11.00[/TD]
[/TR]
</tbody>[/TABLE]

So, because there is an 8 hour shift, I want the total hours to say 10.30 not 11.00

Here is the data I have for these two days. (I have it filled out for all 7 days in each week, but I cut it down to make it easier) (Data was too long so I had to put image sorry)
<a3),((b3-a3)*24)+24,(b3-a3)*24)),2)+round(if((or(d3="",e3="")),0,if((e3<d3),((e3-d3)*24)+24,(e3-d3)*24)),2)
<a3),((b3-a3)*24)+24,(b3-a3)*24)),2)+round(if((or(d3="",e3="")),0,if((e3<d3),((e3-d3)*24)+24,(e3-d3)*24)),2)
<a3),((b3-a3)*24)+24,(b3-a3)*24)),2)
<a3),((b3-a3)*24)+24,(b3-a3)*24)),2)

th


<a3),((b3-a3)*24)+24,(b3-a3)*24)),2)
I hope that's not to much to ask for. I've reached a dead end. I've looked at tons of different options but they all want me to include a "Time in, Time out" column. But I really don't want that.</a3),((b3-a3)*24)+24,(b3-a3)*24)),2)></a3),((b3-a3)*24)+24,(b3-a3)*24)),2)
</a3),((b3-a3)*24)+24,(b3-a3)*24)),2)
</a3),((b3-a3)*24)+24,(b3-a3)*24)),2)+round(if((or(d3="",e3="")),0,if((e3<d3),((e3-d3)*24)+24,(e3-d3)*24)),2)
</a3),((b3-a3)*24)+24,(b3-a3)*24)),2)+round(if((or(d3="",e3="")),0,if((e3<d3),((e3-d3)*24)+24,(e3-d3)*24)),2)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
If you don't put in the time in and time out, does that mean you'll enter the total time for a day (e.g., Monday = 3; Tuesday = 8; etc.)?

If you have 7 days from A:G columns, then H might look like this for total hours:

Code:
=SUM(A4:G4)-0.5*COUNTIF(A4:G4,">=8")

Using your example, this would show as 10.5 hours.
 
Last edited:
Upvote 0
No, if there is no time in or out data like if Wednesday came and there were no hours it would just remain empty. This is my actual table. For example, I need the first line to say 30 hours, not 32 because the formula should deduct the 30 minute breaks. But the second line with 6 hours doesn't need the deduction because it's only a 3 hour shift.

th
 
Upvote 0
No image is posted or showing so it's anyone's guess where that 30 or 32 hours is.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,148
Members
453,021
Latest member
Justyna P

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