How to Repeat shifts and have it auto fill after giving first line.

LPHBELLO

New Member
Joined
Aug 2, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I want to be able to autofill the rest of the rows beginning with row 12 to finish the given sequence in row 6. This a shift rotation schedule that I want to be able to auto fill with a formula to calculate work schedule that will include A shift on days with 4 days on M-TH off F-SUN then back on M-W and then off TH-SUN, and then rotate with B shift on days, 4 on then 3 off, and then 3 on 4 off, and back to A during the day?



Production Crew Rotating Schedule NEW 2024.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
4January12345678910111213141516171819202122232425262728293031
5Day of the weekMTUWTHFSASUMTUWTHFSASUMTUWTHFSASUMTUWTHFSASUMTUW
6Day ShiftAAABBBBBBBAAAAAAA
7Night ShiftBBB    AAAA   AAA    BBBB   BBB
8
10February1234567891011121314151617181920212223242526272829
11Day of the weekTHFSASUMTUWTHFSASUMTUWTHFSASUMTUWTHFSASUMTUWTH
12Day ShiftBBBBBBBAAAAAAA
13Night Shift    AAAA   AAA    BBBB   BBB 
Schedule
Cell Formulas
RangeFormula
B4,B10B4=TEXT(DATE($AH$4,$A4,$C4),"MMMM")
C4,C10C4=DAY(DATE($AH$4,$A$4,1))
D4:AG4D4=DAY(DATE($AH$4,$A$4,C4+1))
C5:AG5C5=CHOOSE(WEEKDAY(DATE($AH$4,$A$4,C4)),"SU","M","TU","W","TH","F","SA")
C7:AG7,C13:AE13C7=IF(C6="A","B",IF(C6="B","A",""))
D10:AD10D10=DAY(DATE($AH$4,$A$4,C4+1))
AE10AE10=IF(AH5="Leap Year",DAY(DATE($AH$4,$A$4,AD4+1)),"")
C11:AD11C11=CHOOSE(WEEKDAY(DATE($AH$4,$A$10,C10)),"SU","M","TU","W","TH","F","SA")
AE11AE11=IF(AE10="","",CHOOSE(WEEKDAY(DATE($AH$4,$A$10,AE10)),"SU","M","TU","W","TH","F","SA"))
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,215,197
Messages
6,123,581
Members
449,108
Latest member
rache47

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