Average calculation of workhours - notice

Imight

New Member
Joined
Sep 8, 2018
Messages
3
Hello,

I am trying to make a formula that lets me know when an employee needs to have time off (by law there is a maximum amount of hours they can work in an eight week work period).

There are different values for different shifts:

Day: 9 hours
Evening: 9 hours
Night: 7,5 hours
Free: 0 hours

After working an eight week period (48 days that are not "free"), they need to go home.

They do not necessarily need to take an entire week off, but can have long weekends to keep the average legal.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Day: 9 hours
Evening: 9 hoursfor simplicity let us say the linit is 100 hours in any 14 days
Night: 7,5 hours
Free: 0 hours
day1day2day3day4day5day6day7day8day9day10day11day12day13day14day15day16day17day18day19day20day21
daydaydayeveningfreefreefreeeveningeveningeveningeveningeveningeveningeveningeveningday16nightnightnightnightnight
day2718900000
evening7281818172727272
night000918273645
total999990909099108117
so on day 19 with a rolling average of 99 hours employee cannot work on day 20

<colgroup><col span="3"><col span="15"><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,499
Messages
6,125,163
Members
449,210
Latest member
grifaz

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