How to distribute employees evenly across time slots by date in WPS Spreadsheets
Question details
The user wants to assign employees who share the same assessment date as evenly as possible to morning, afternoon, and evening slots by using a formula in WPS Spreadsheets.

- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- Scheduling employee assessments by date and distributing them evenly among three daily time slots.
- Observed behavior
- The user needs an even rotation across morning, afternoon, and evening slots based on each employee’s order within the assessment date.
Prepare a table that contains employee IDs and assessment dates. Add a helper column where you can number employees in the order they should be assigned within each date.
Use a helper order number and the CHOOSE/MOD formula
Use this when you can create an order number for each employee within the same assessment date; the formula cycles through morning, afternoon, and evening slots automatically.
The formula divides the order number by 3 and uses the remainder to assign a slot, so employees are distributed in a rotating pattern instead of being manually grouped.
Launch WPS Office, open WPS Spreadsheets, and load the workbook that contains employee IDs and assessment dates.
Insert a column named Order. In the first data row, enter =COUNTIF($B$2:B2,B2) and drag the fill handle down, where column B contains assessment dates. This numbers employees 1, 2, 3 within each date.
In the Slot column, enter =CHOOSE(MOD(D2-1,3)+1,"morning slot","afternoon slot","evening slot") where D2 is the Order cell, then drag the fill handle down.
Confirm that order numbers 1, 4, and 7 show morning slot; 2, 5, and 8 show afternoon slot; 3, 6, and 9 show evening slot.

Rank employees by a stable employee ID field
Use this when the current row order should not be trusted and you need a repeatable order based on a unique employee identifier.
Assign employees to time slots evenly with WPS Spreadsheets
Use WPS Spreadsheets to distribute employees across morning, afternoon, and evening slots by assessment date, using a repeatable helper column and CHOOSE/MOD formula.
- 1. Download and install WPS Office: Download WPS Office from the official WPS website and install WPS Spreadsheets on your computer.
- 2. Open your employee assessment workbook: Launch WPS Spreadsheets, click File > Open, and select the .xlsx workbook with employee IDs and assessment dates.
- 3. Add the order helper column: Insert a column named Order and enter =COUNTIF($B$2:B2,B2) in the first data row to number employees within each assessment date.
- 4. Apply the slot assignment formula: Enter =CHOOSE(MOD(D2-1,3)+1,"morning slot","afternoon slot","evening slot") in the Slot column and drag the fill handle down.
- 5. Save and share the schedule: Click File > Save to keep the .xlsx format, or File > Export to PDF to share the final slot schedule.

Frequently Asked Questions
How do I create the order number for each employee within the same assessment date?
Add a helper column and enter =COUNTIF($B$2:B2,B2) in the first data row, where column B holds assessment dates. Drag the formula down to number employees 1, 2, 3 for each date.
Why does the formula use MOD(orderNumber-1,3)+1 instead of MOD(orderNumber,3)+1?
Using orderNumber-1 makes employee 1 map to the first CHOOSE result, morning slot. MOD(orderNumber,3)+1 would map employee 1 to afternoon slot.
Can I use this slot assignment method if my assessment dates are not sorted?
Yes. The COUNTIF helper column numbers each date’s occurrence independently, so the formula still works even when rows are not grouped by date, as long as the date range is consistent.
Does the slot distribution formula work when I open the file in Microsoft Excel?
Yes. CHOOSE, MOD, and COUNTIF are supported in both WPS Spreadsheets and Microsoft Excel, so the workbook can be saved as .xlsx and shared across both applications.




