How to Create Multiple Rotating Shift Schedules in Excel
Question details
The user needs to build an advanced shift-work calendar accommodating nine rotating shift options with custom times and specific conditional formatting.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating an automated employee scheduling template with customized rotation patterns (e.g., 7 days of shift 1, 7 days of shift 2) while removing standard day-off rules.
- Observed behavior
- The user is trying to expand an existing 3-shift template to 9 shifts and modify the formula rules without breaking the complex rotation sequence.
Before modifying your shift calendar, clearly outline the start and end times for all nine shifts and finalize the total length of your rotation pattern cycle. Create a backup copy of your current workbook to prevent accidental data loss while adjusting complex formulas.
Define Custom Shift Parameters and Update the Rotation Formula
Create a reference table for all 9 shifts, update the sequencing formula to accommodate the new pattern, and apply conditional formatting for visual clarity.
To manage a complex 9-shift schedule (such as 7 days on shift 1, 7 days on shift 2, etc.), you must rely on a sequence formula rather than manual entry. If you are removing a 'Day Off' rule from a previous template, you will need to adjust the divisor in your formula to match the total days in your new cycle.
On a new worksheet or hidden columns, create a table listing Shift IDs (1 through 9) along with their respective start and end times. This will act as the data source for your calendar dropdowns or lookup functions.
Locate the formula generating the shift numbers in your calendar grid. Update the MOD or CHOOSE functions to cycle through the new pattern (e.g., a 63-day cycle for 9 shifts lasting 7 days each). Remove the IF condition that previously inserted the 'Day Off' value.
Highlight your entire calendar grid. Navigate to Home > Conditional Formatting > New Rule. Select 'Format only cells that contain', set the cell value equal to '1', and choose a background color. Repeat this process for numbers 2 through 9 to assign distinct colors.
Check the calendar to ensure the pattern flows continuously as 11111112222222... through shift 9, and verify that the cycle correctly restarts at shift 1 after the final day.

Create Rotating Shift Schedules Easily with WPS Spreadsheet
WPS Spreadsheet provides powerful logical functions, advanced conditional formatting, and free pre-made templates to help you build and manage complex employee shift schedules effortlessly.
- 1. Open a Template or Blank File: Launch WPS Spreadsheet and create a new blank workbook, or click on 'Templates' and search for 'Shift Schedule' to get a head start.
- 2. Set Up Shift References: Designate a separate area in your sheet to list your 9 shift types and their designated times to keep your data organized.
- 3. Automate with Formulas: Enter your sequence pattern and apply the INDEX and MOD functions to automate the 7-day rotation across your calendar grid.
- 4. Color-Code the Schedule: Navigate to the Home tab, click Conditional Formatting, and assign different highlight colors to each shift number for immediate visual clarity.

Frequently Asked Questions
How do I remove the 'Day Off' rule without breaking my schedule formula?
You need to locate the IF or CHOOSE statement in your formula that outputs the 'Day Off' value. Remove that specific condition and ensure your sequence function (like MOD) is updated to reflect the new total number of continuous working days in your rotation cycle.
Can I use text labels instead of numbers for my shift schedule?
Yes. While formulas often calculate patterns using numbers (1-9), you can wrap your formula in a VLOOKUP or INDEX/MATCH function. This will translate the rotation numbers into specific text labels like 'Morning', 'Night', or 'Custom' based on your reference table.
Why is my conditional formatting not applying colors correctly to the shifts?
This usually occurs if the applied range is incorrect or if rules are overlapping. Go to Conditional Formatting > Manage Rules, verify that the 'Applies to' field covers your entire calendar grid, and check the rule hierarchy to ensure no other formatting is taking precedence.




