schedule worksheet help

swest

New Member
Joined
Sep 8, 2011
Messages
2
I have a schedule worksheet that I am trying to improve.
In the top row I can put in the start and end time of a shift (example 9:00 AM in 1st cell and 5:00 PM in adjacent cell).

The cell below calculates the amount of hours the staff member is schedule with the following formula (=((C18-INT(C18))*24)-((B18-INT(B18))*24). This works fine.

The problem I have is, I have not perfected a way for this formular to take off the break time for the staff member. Our company policy is anything 5 hours and over requires an unpaid half hour break. How can I include a formula into the one above to take off a half hour on anything 5 and above? Can someone solve this puzzle for me? :confused:
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi and welcome.

Try something like this...
<br /><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>B</th><th>C</th><th>D</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">17</td><td style=";">Start</td><td style=";">End</td><td style=";">Hours</td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: right;;">9:00 AM</td><td style="text-align: right;;">5:00 PM</td><td style="text-align: right;;">7.5</td></tr></tbody></table><br /><br /><table cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">D18</th><td style="text-align:left">=(<font color="Blue">C18-B18</font>)*24-IF(<font color="Blue">(<font color="Red">C18-B18</font>)*24>=5,0.5,0</font>)</td></tr></tbody></table></td></tr></table><br />

Format the cell with the formula as General or number.
 
Upvote 0

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

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