I have this roster and need to find
1.The max time shift for every emp in No of shift column
2.Need to display the week day off in Week off column
by any change is there a function or VBA code to find the same. below is the sample
1.The max time shift for every emp in No of shift column
2.Need to display the week day off in Week off column
by any change is there a function or VBA code to find the same. below is the sample
Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | ||||
ID | Name | 7/11/21 | 7/12/21 | 7/13/21 | 7/14/21 | 7/15/21 | 7/16/21 | 7/17/21 | No of Shift (Output) | Week Off (Output) |
1 | a | OFF | 1500-2100 | 1500-2100 | 1500-2100 | 1500-2100 | 1500-2100 | 1200-2100 | 1500-2100 | Sun |
2 | b | OFF | OFF | OFF | OFF | OFF | OFF | OFF | - | sun,Mon,tue,Wed,thu,fri,Sat |
3 | c | OFF | 0800-1830 | 0800-1830 | 0800-1830 | 0800-1830 | OFF | OFF | 0800-1830 | Sun,Fir,Sat |
4 | d | 0700-1530 | 0700-1530 | OFF | OFF | 0700-1530 | 0700-1530 | 0700-1530 | 0700-1530 | Tue,Wed |
5 | e | 0700-1100 | 1030-1430 | OFF | OFF | OFF | 1030-1430 | 0700-1100 | 0700-1100 : 1030-1430 | Tue,Wed,thu |
6 | f | OFF | 0900-1700 | 0900-1700 | 0900-1700 | 0900-1700 | 0900-1700 | OFF | 0900-1700 | Sun, Sat |
7 | g | 1630-0100 | OFF | OFF | 1630-0100 | 1630-0100 | No longer employed | 1630-0100 | 1630-0100 | Mon, Tue |
8 | h | 1000-1830 | 1000-1830 | 1000-1830 | OFF | OFF | 1000-1830 | Suspended | 1000-1830 | Wed,thu |
13 | m | OFF | Leave of absence | Leave of absence | Leave of absence | Leave of absence | Leave of absence | OFF | - | Sun, Sat |