Holiday hours Calculation

Wrenn_6869

New Member
Joined
Oct 7, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Good day.
I have a table that adds total hours worked by employees. I however wish to have a formula that will tell me the number of hours worked on holidays. I have a list of holidays for the year and I wish to create a formula that count the number of hours in one particular month e.g. August 2023. if it is a different month, the formula must be able to holidays for that month.
The hours are calculated as follows:
1. The shift starts at 07.00 and ends at 16.00 which is 9 hours
2. The next shift stars at 16.00 and end at 07.00 the following day.

You will note that the day ends at 00.00. Therefore, if an employee works in the evening shift of a holiday he starts at 16.00 and his holiday hours end at 00.00 and that is equivalent to 8 hours. and the following hours are treated as normal.
If the holiday is on the following day his holiday hours start at 00.00 and end at 07.00 and that is equivalent to 7 hours.
On the attached spreadsheet, the schedule shows that:
Employee 1 works a total of 240.50 hours and 16 hours are for holidays.
Employee 2 works a total of 254.52 hours and 26.50 hours are holidays.
Employee 3 works a total of 260.38 hours and 23.25 hours are holidays.

Further note that Employee 3's holiday hours start from 00.00 to 07.25 on 01/01/2024 but has to be paid under 31/12/2023.

Can you please help.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Calculation Of Holiday Hours
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Good day.
Sorry I missed the rule that requires one to declare if the same post had been made to another platform. Actually, I did submit a similar post to Excel Help Forum with a purpose of finding the most suitable answer to my query.
Trusting that my query will still be addressed not withstanding my prior failure to meet the declaration rule.
 
Upvote 0

Forum statistics

Threads
1,223,155
Messages
6,170,401
Members
452,324
Latest member
stuart1980

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