Employee Schedule - with lunch and off days

swtsev

New Member
Joined
Jun 18, 2018
Messages
1
Hello everyone,

I am working on creating an employee schedule with multiple employes. I have entered a start time and an end time for each shift. There are days where employess will be off and if working they will receive a half hour lunch. I have looked online and was able to find a formula =Mod(end time- start time,1)-1/48 which seems to work on the days worked but I am not sure how to get zero hours for the off days. I want the off days to read as off. I am also having issues summing up the hours for the week. I would greatly appreciate any help in this matter.

Thanks,
Michelle

Sunday Monday Tuesday
off 10:00 AM 9:00 AM
2:00 PM 5:00 PM
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You can use the following formula to calculate the time difference inc. lunch break, and show "off" if the employee isn't working (I've assumed your table starts in A1):

=IF(A2="off","off",(A3-A2)*24-0.5)

You can do a simple SUM(A4:G4) to calculate the total hours per week; the cells with "off" in will be treated as zeros.
 
Upvote 0

Forum statistics

Threads
1,215,955
Messages
6,127,926
Members
449,411
Latest member
AppellatePerson

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