Ramballah
Active Member
- Joined
- Sep 25, 2018
- Messages
- 334
- Office Version
- 365
- Platform
- Windows
Hi,
So I have a roster in excel, and it works wonders for me, however my boss wants to have a total hours per person in the sheet aswell.
So how my sheet works, there are a few different shifts that we deal with and so I use a numbering system to fill it in. It'll make sense if you see the sheet.
Anyway, what I need is a total of hours each person works for the month. But there are a few issues which makes it hard for me to write my own formula.
Here's a picture first:
So a little translation for the hours:
1 = 09:30 AM to 3:30 PM
2 = 1 PM to 9 PM
3 = 2 PM to 10 PM
4 = 15 PM to 10:30 AM next day
And now what makes the issue is that when number 3 is on a saturday or sunday, the time will be 3PM to 10PM (my colleagues know this but its for the hours formula)
And 4 as you can see, I place it on 2 days but its just 1 shift. But when its on a saturday or sunday the end time is 11AM instead of 10:30 AM.
And with the number 4 shifts, there is also 4 hours own time that needs to be substracted.
So for the example:
Michelle works 9 day shifts (number 1) which is 6 hours each so thats 54 hours
She also works 2 number 3 shifts which is 16 hours (2x 8h) and none of them are in the weekend otherwise it would be a 7hr shift
She also works 4 number 2 shifts which is 32 hours (4x 8h)
But she also works 3 sleep shifts, 1 of them is a regular time so thats 19:30 hours, but minus the 4 hours so thats 15:30 hours
but theres also 2 in the weekend so that would be 20 hours, but minus the 4 again 16 hours. times 2 is 32
So in total she works 32+15,5+32+16+54 = 149,5 hours.
So I hope this clears it up what I want and why I have a difficult time with my small brain lol. Also this is office 365
Thanks in advance!
Ramballah
So I have a roster in excel, and it works wonders for me, however my boss wants to have a total hours per person in the sheet aswell.
So how my sheet works, there are a few different shifts that we deal with and so I use a numbering system to fill it in. It'll make sense if you see the sheet.
Anyway, what I need is a total of hours each person works for the month. But there are a few issues which makes it hard for me to write my own formula.
Here's a picture first:
So a little translation for the hours:
1 = 09:30 AM to 3:30 PM
2 = 1 PM to 9 PM
3 = 2 PM to 10 PM
4 = 15 PM to 10:30 AM next day
And now what makes the issue is that when number 3 is on a saturday or sunday, the time will be 3PM to 10PM (my colleagues know this but its for the hours formula)
And 4 as you can see, I place it on 2 days but its just 1 shift. But when its on a saturday or sunday the end time is 11AM instead of 10:30 AM.
And with the number 4 shifts, there is also 4 hours own time that needs to be substracted.
So for the example:
Michelle works 9 day shifts (number 1) which is 6 hours each so thats 54 hours
She also works 2 number 3 shifts which is 16 hours (2x 8h) and none of them are in the weekend otherwise it would be a 7hr shift
She also works 4 number 2 shifts which is 32 hours (4x 8h)
But she also works 3 sleep shifts, 1 of them is a regular time so thats 19:30 hours, but minus the 4 hours so thats 15:30 hours
but theres also 2 in the weekend so that would be 20 hours, but minus the 4 again 16 hours. times 2 is 32
So in total she works 32+15,5+32+16+54 = 149,5 hours.
So I hope this clears it up what I want and why I have a difficult time with my small brain lol. Also this is office 365
Thanks in advance!
Ramballah