divide a total of hours in several days according to rules

Status
Not open for further replies.

Lux Aeterna

Board Regular
Joined
Aug 27, 2015
Messages
191
Office Version
  1. 2019
Platform
  1. Windows
I've tried asking that question before, but I didn't make myself clear, so I am posting it again with some more explanation.

Here is our monthly schedule.
- We work from Monday to Friday for 7 hours (regular). Arrival and departure times are standard, so that was the easy part.
- We are also getting a bonus for 20 more hours per month (overtime). What I need to do is to spread those 20 hours to the days we have worked automatically.

This means that if we work for 22 days, we can have any "combination" of overtime hours as long as it sums up to a total of 20. For example, we can have 20 days of 1 hour overtime (and 2 days of zero overtime), or 10 days of 2 hours overtime (and 12 days of zero overtime), or 10 days of 1 hour and 5 days of 2 hours overtime (and 7 days of zero overtime).

Limitations
Max overtime per day is 20 hours.
We can work either 1 or 2 hours of overtime (i.e. not 20 or 30 minutes)

I can upload excel file if necessary.

Hope someone can help!

1638358134467.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Duplicate to: Cannot think of a short title, see whole post please :)

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted. Please continue in your original thread, with any clarifications that you need to add.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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