Formula to Auto Generate and change shift Duty Weekly

Lukma

Active Member
Joined
Feb 12, 2020
Messages
259
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
HI Guys

Its Nice been back online with you friend and i appreciate every one in the forum of been great help and assistance

I need a Solution With a Dynamic Auto Shuffle Shift Change roster just with on Click to Change each employee

1. Morning Shift as ( M ) 2. Afternoon Shift as ( A ) 3. Night shift as ( N )
What i need formula is when i click the following Month it should change the shift and change duty in groups

Total Number of Clerk is 19 and i need to group them Morning and afternoon and night
is there any way i could have a formula to do this shuffling one i click the next month without starting over manually

I wil appreciate if there is a solution to Auto Generate for every month

Planning Supply Chain Duty Roster.xlsm
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAM
2Morning Shift MPlanning Supply Chain Schedule Roster
3Afternoon ShiftA
4Night ShiftN
5OFF DAYS O
6LEAVEL
7Over Time OT
8MonthJan-202130 Day8 HRS FriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSun
9Emp IDEmployee NamesTitleOn DutyOffLeaveOverTime01020304050607080910111213141516171819202122232425262728293031
10165317Ibrahim AlmazroueiOfficer31000OOAAAAAOOAAAAAOOAAAAAOOAAAAAOOA
11160858Ali Al Marzouqi Officer31000OOAAAAAOOMMMMMOOAAAAAOOMMMMMOOA
12160194Mohamed Sunkar Officer31000OOMMMMMOOAAAAAOOMMMMMOOAAAAAOOM
13161503Butti Al Mehairbi Officer31000OOAAAAAOOMMMMMOOAAAAAOOMMMMMOOA
14155725Mohamad Ismail Officer30001AOT MMMMMMMAAAAAAOMMMMMMMAAAAAAAM
15156312Emmanuel OvieOfficer31000AANNNNNNNAAAAAAAMMMMMMMAAAAAAAN
16155726Noushad ArinchiraOfficer31000MMAAAAAAAMMMMMMMAAAAAAAMMMMMMMA
17155705Mohamed HashimOfficer2000AA
18156228Oscar Omokhudu Clerk00010OT OT OT OT OT OT OT OT OT OT
19155716Mortada Hussein Clerk00010OT OT OT OT OT OT OT OT OT OT
20156079Mohamed Ashour Clerk00010OT OT OT OT OT OT OT OT OT OT
21156250AbdulKhader ShinanClerk00010OT OT OT OT OT OT OT OT OT OT
Employee Duty Roster
Cell Formulas
RangeFormula
I8:AM8I8=I9
I9I9=C8
J9:AJ9J9=I9+1
AK9AK9=IF(DAY(AJ9+1)<=3,"",AJ9+1)
AL9AL9=IF(DAY(AJ9+2)<=3,"",AJ9+2)
AM9AM9=IF(DAY(AJ9+3)<=3,"",AJ9+3)
B10:D21B10=IF('Employee Master'!B3="","",'Employee Master'!B3)
E10:E21E10=COUNTIF(I10:AM10,"?")
F10:F21F10=COUNTIF(I10:AM10,$D$5)
G10:G21G10=COUNTIF(I10:AM10,$D$6)
H10:H21H10=COUNTIF(I10:AM10,$D$7)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I10:AM51Expression=OR(TEXT(I$9,"DDDD")=Setting!$F$2,TEXT(I$9,"DDDD")=Setting!$F$3)textNO
B9:AM48Expression=AND($B10<>"",B$9<>"")textNO
AM9Celldoes not contain a blank value textNO
I9:AL9Celldoes not contain a blank value textNO
Cells with Data Validation
CellAllowCriteria
C8List=Month
I10:AM21List=Shift_List
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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