Creating a Rotating Seniority List based on being asked and being accepted.

Squeak74

New Member
Joined
Dec 12, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Web
Hello,

I am trying to create a rotating list of workers based on seniority, that would rotate based on the answers to two questions.
1. Were they asked? Y or N
a. If Y, then they would move to the bottom of the list.
b. If N, then they would not move down, but could move up if the person below them were asked.
2. Did they accept? Y or N
a. If Y, then they would move to the bottom of the list.
b. If N, then they would still move to the bottom of the list.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Welcome to the MrExcel board!

Without any sample data and expected results, I am unsure what you have and what you want, based on that description.
For one thing, you said the list would be based on the answers to two questions. However, it seems that the second question is irrelevant since the same thing happens no matter the answer to that question. :confused:

2. Did they accept? Y or N
a. If Y, then they would move to the bottom of the list.
b. If N, then they would still move to the bottom of the list.

I'm also unsure what you mean by a "rotating" list.

Please consider constructing a small set of dummy sample data and post that, along with the expected results and explain again in relation to the specific sample data.
 
Upvote 0
Welcome to the MrExcel board!

Without any sample data and expected results, I am unsure what you have and what you want, based on that description.
For one thing, you said the list would be based on the answers to two questions. However, it seems that the second question is irrelevant since the same thing happens no matter the answer to that question. :confused:



I'm also unsure what you mean by a "rotating" list.

Please consider constructing a small set of dummy sample data and post that, along with the expected results and explain again in relation to the specific sample data.
My apologies for the confusion. Below please see my example.

Original List
EMPLOYEE NAMESENIORITY DATEOT OFFEREDACCEPTED
Appleton, Alphonso7/1/1996YN
Ballard, Brian6/1/1999NN
Charleston, Chuck4/23/2001NN
Davis, Dean12/3/2001YY
Eggleston, Edgar7/3/2004NN
Franklin, Frank4/17/2005NN
Green, George7/14/2006NN
Homan, Howard10/2/2006NN
New List
EMPLOYEE NAMESENIORITY DATEOT OFFEREDACCEPTED
Ballard, Brian6/1/1999NN
Charleston, Chuck4/23/2001NN
Eggleston, Edgar7/3/2004NN
Franklin, Frank4/17/2005NN
Green, George7/14/2006NN
Homan, Howard10/2/2006NN
Appleton, Alphonso7/1/1996YN
Davis, Dean12/3/2001YY

In the original list they are all in order based on seniority date. If they are asked, they move to the bottom, but if they aren't they would remain in line.

So, the new list is based on OT offered, then the person that accepts is at the absolute bottom of the list. Therefore, the next person to be offered OT would be Ballard, Brian based on this list, but if he is on vacation, then we would go to Charleston, Chuck.
 
Upvote 0
Thanks for the sample data. (y)

Is this what you want then?

Squeak74.xlsm
ABCD
1EMPLOYEE NAMESENIORITY DATEOT OFFEREDACCEPTED
2Appleton, Alphonso1/07/1996YN
3Ballard, Brian1/06/1999NN
4Charleston, Chuck23/04/2001NN
5Davis, Dean3/12/2001YY
6Eggleston, Edgar3/07/2004NN
7Franklin, Frank17/04/2005NN
8Green, George14/07/2006NN
9Homan, Howard2/10/2006NN
10
11New List
12EMPLOYEE NAMESENIORITY DATEOT OFFEREDACCEPTED
13Ballard, Brian1/06/1999NN
14Charleston, Chuck23/04/2001NN
15Eggleston, Edgar3/07/2004NN
16Franklin, Frank17/04/2005NN
17Green, George14/07/2006NN
18Homan, Howard2/10/2006NN
19Appleton, Alphonso1/07/1996YN
20Davis, Dean3/12/2001YY
Seniority List
Cell Formulas
RangeFormula
A13:A20A13=INDEX(A$2:A$9,IFERROR(AGGREGATE(15,6,(ROW(A$2:A$9)-ROW(A$2)+1)/(C$2:C$9="N"),ROWS(A$13:A13)),AGGREGATE(15,6,(ROW(A$2:A$9)-ROW(A$2)+1)/(C$2:C$9="Y"),ROWS(A$13:A13)-COUNTIF(C$2:C$9,"N"))))
B13:D20B13=INDEX(B$2:B$9,MATCH($A13,$A$2:$A$9,0))
 
Upvote 0
Solution
Hello. How can I expand this list to 15 people.
Welcome to the MrExcel board!

Just add 7 new rows in the middle of the top section and add/adjust the data in that top section.
Then drag all the bottom section formulas down another 7 rows.
 
Upvote 0
Hello Peter,

Would it be possible to have a formula that works similarly to the one you've posted above above with the exception that if the person is offered the overtime (Y in Column C), but does not accept the overtime (N in Column D) they then move to the new list below the people who were N/N but they are placed above the people who are Y/Y. I hope that makes sense, if not I can also supply sample data to better help explain my request.

Thank you!
Jim
 
Upvote 0
Would it be possible to have a formula that works similarly to the one you've posted above above with the exception that if the person is offered the overtime (Y in Column C), but does not accept the overtime (N in Column D) they then move to the new list below the people who were N/N but they are placed above the people who are Y/Y.
Welcome to the MrExcel board!
:confused: Isn't that what already happens?
Example in post 4 is Appleton who is Y/N. In the results Appleton is below all the N/N and above the Y/Y
 
Upvote 0
Welcome to the MrExcel board!
:confused: Isn't that what already happens?
Example in post 4 is Appleton who is Y/N. In the results Appleton is below all the N/N and above the Y/Y
You are correct, but it only happened in this scenario because Appleton was marked as Y/N before Davis was marked as Y/Y. In my case, I oftentimes have to canvas out multiple OT slots on a single day/shift and so using the formula you've given, if I move BEYOND any of the people who have are marked as Y/Y and use a Y/N before getting to another Y/Y then those marked as Y/N will land in between those marked as Y/Y. Essentially, I'm looking for a formula close to the one you've posted here, except I need it to rotate names in the order of N/N, Y/N, Y/Y with those being marked as N/N being rotated to the top and those being marked as Y/Y being rotated to the bottom, while those marked as Y/N land in between. Please let me know if I need to clarify anything further, and I truly appreciate any time and effort you put into this one.
 
Upvote 0
but it only happened in this scenario because Appleton was marked as Y/N before Davis was marked as Y/Y.
OK. Does this work better?

24 03 31.xlsm
ABCD
1EMPLOYEE NAMESENIORITY DATEOT OFFEREDACCEPTED
2Appleton, Alphonso1/07/1996YY
3Ballard, Brian1/06/1999NN
4Charleston, Chuck23/04/2001NN
5Davis, Dean3/12/2001YN
6Eggleston, Edgar3/07/2004NN
7Franklin, Frank17/04/2005NN
8Green, George14/07/2006NN
9Homan, Howard2/10/2006NN
10
11New List
12EMPLOYEE NAMESENIORITY DATEOT OFFEREDACCEPTED
13Ballard, Brian1/06/1999NN
14Charleston, Chuck23/04/2001NN
15Eggleston, Edgar3/07/2004NN
16Franklin, Frank17/04/2005NN
17Green, George14/07/2006NN
18Homan, Howard2/10/2006NN
19Davis, Dean3/12/2001YN
20Appleton, Alphonso1/07/1996YY
Seniority List
Cell Formulas
RangeFormula
A13:D20A13=SORTBY(A2:D9,C2:C9,1,D2:D9,1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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