How to rotate name list?

Manith

New Member
Joined
Apr 14, 2020
Messages
29
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

May I ask how to automatically rotate cashier schedule (in Part 2) based on their working schedule (in Part 1)? So if they have day off/AL/PH in any day then their cashier schedule will be automatically change and rotate.
Part 1: is the working schedule.
Part 2: is the cashier schedule (has 3 shifts) which need to be rotating based on the working schedule. Please note that staffs working in morning shift will always work as cashier in shift 1. And Evening staffs will be working for only shift 2 and shift 3.
Part 3: is show the many times of each staffs work as cashier in each shift because we want to show them working in each shift equally.

Remark:
D = Day Off
PH = Public Holiday
M =Morning Shift
E = Evening Shift

The below is the example:

Book2.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
3Part 1NameWorking Shift1-Jan2-Jan3-Jan4-Jan5-Jan6-Jan7-Jan8-Jan9-Jan10-Jan11-Jan12-Jan13-Jan14-Jan15-Jan16-Jan17-Jan18-Jan19-Jan20-Jan21-Jan22-Jan23-Jan24-Jan25-Jan26-Jan27-Jan28-Jan29-Jan30-Jan31-Jan
4SatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMon
5A1MMMDMPHMMMMDMMMMMDMMMMMMMDMMMMMMD
6A2MMMMDMMMMMMDMMMMMDMMMMMMMDMMMMMM
7A3MMMMMDMMMMMPHDMMMMMDMMMMMMMDMMMMM
8A4MMMMMMDMMMMMMDMMMMMDMMMMMMMDMMMM
9B1EEEDEEEEEEDEEEEEEDEEEEEEDEEEEEED
10B2EEEEDEEEEEEDEEEEEEDEEEEEEDEEEEEE
11B3EEEEEDEEEEEEDEEEEEEDEEEEEEDEEEEE
12B4EEEEEEDEEEEEEDEEEEEEDEEEEEEDEEEE
13B5EEEEEEEDEEEEEEDEEEEEEDEEEEEEDEEE
14B6EEEEEDEEEEEEDEEEEEEDEEEEEEDEEEEE
15B7EEEEEEDEEEEEEDEEEEEEDEEEEEEDEEEE
16B8EEEEEEEDEEEEEEDEEEEEEDEEEEEEDEEE
17
18
19Cashier Shift Rotation
20Part 2Date12345678910111213141516171819202122232425262728293031
21SatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMon
22Shift 1A1A2A3A4A2A1A3A4A1A2A4A1A3A2A4A3A1A2A3A4A1A2A3A4A1A2A3A4A1A2A3
23Shift 2B1B3B5B7B2B4B6B8B1B3B5B7B2B4B6B8B3B1B5B8B2B4B6B7B3B4B5B1B2B4B6
24Shift 3B2B4B6B8B1B3B5B7B2B4B6B8B1B3B5B7B2B4B7B6B1B3B5B8B1B2B6B7B8B3B5
25
26
27Part 3ShiftA1A2A3A4B1B2B3B4B5B6B7B8
281888700000000
292000044454433
303000044434444
31Total888788888877
CASHIER-FEB-22
Cell Formulas
RangeFormula
D28:O28D28=COUNTIF($D22:$AH22,D27)
D29:O29D29=COUNTIF($D23:$AH23,D27)
D30:O30D30=COUNTIF($D24:$AH24,D27)
D31:O31D31=SUM(D27:D30)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D5:AH16Cell Valuecontains "PH"textNO
D16:AH16Cell Valuecontains "E"textNO
D16:AH16Cell Valuecontains "D"textYES
D3:AH4Cell Valuecontains "SUN"textNO
D3:AH4Cell Valuecontains "SA"textNO
D5:AH15Cell Valuecontains "E"textNO
D5:AH15Cell Valuecontains "D"textYES
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
anyone can help me please?
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,267
Members
449,149
Latest member
mwdbActuary

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