Wrenn_6869
New Member
- Joined
- Oct 7, 2023
- Messages
- 2
- Office Version
- 2016
- Platform
- 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.
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.