salahmost
Board Regular
- Joined
- Feb 19, 2007
- Messages
- 68
We've turned to 3 shifts instead of two.
I have 3 groups of people who change shifts regularly, Group A - Group B - Group C , groups swap shifts with each other So they will go forward 1 shift.
week1: A B C
Week2: C A B
week3: B C A ... then again A B C....etc.
.I would like something that gives me a visible display in Excel when I change a week number box, so it shows me what shift they are on for that week number or for any data.
I use the next formula to calculates the week number of the Date base on Week 1 beginning on the first Saturday of the year as week start day is Saturday and week end data is Thursday and Friday is our off day:
Where B2 contains the date.
Thanks in advanced.
ـــــــــــــــــــــــــــــــــــــــــ
ٍSalah
I have 3 groups of people who change shifts regularly, Group A - Group B - Group C , groups swap shifts with each other So they will go forward 1 shift.
week1: A B C
Week2: C A B
week3: B C A ... then again A B C....etc.
.I would like something that gives me a visible display in Excel when I change a week number box, so it shows me what shift they are on for that week number or for any data.
I use the next formula to calculates the week number of the Date base on Week 1 beginning on the first Saturday of the year as week start day is Saturday and week end data is Thursday and Friday is our off day:
Code:
=TRUNC(((B2-DATE(YEAR(B2),1,1)+MOD(7-WEEKDAY(DATE(YEAR(B2),1,1)),7))+6)/7)
Thanks in advanced.
ـــــــــــــــــــــــــــــــــــــــــ
ٍSalah