RANDOM select strings, and No REPEAT selection

dellzy

Board Regular
Joined
Apr 24, 2013
Messages
146
Dear Excel Experts,

I found formulas that allow users to select names randomly:-

Code:
=INDEX($A$2:$A$11,RANDBETWEEN(1,COUNTA($A$2:$A$11)),1)
But how do we omit the one that has appeared/selected to avoid repetitive value? The reason why I need this is to ensure staff select unique tasks, no one should get same task.

Below are my input.

Col A
BROADBAND
BAL STATUS
VOL STATUS
MAXUP
MAXUPEXTRA
VOL PURCHASE
AXIATA ROAM ON
ADVANCE
BDAY BONUS
BB ON/OFF

At Cell C2 contains the random picker formula.

After running the formula in C2 and came out value "VOL STATUS", the next run should not include "VOL STATUS" anymore in the random list to avoid duplicates.

Appreciate anyone's help.

Thank you in advance.
DZ
 

J.Ty.

Well-known Member
Joined
Feb 4, 2012
Messages
866
Office Version
365, 2016, 2010
Platform
Windows, Web
It is difficult (or even impossible) to do selections one-by-one, by a single formula.

But you can do it in a different way as follows:


  • Put into B2:B11 formulas =RANDBETWEEN(1,1000000) and let them compute the random numbers.
  • Sort A2:B11 by the values in column B. You will get a random order of the tasks.
  • Assign employee 1 the first task, employee 2 the second task, etc.

J.Ty.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,269
Office Version
365
Platform
Windows
.. the next run ..
1. What do you mean by "the next run"?

2. Are you trying to list all those 10 items in random order with no repeats?

3. Are you wanting the staff to select a task beside their name but not allow them to select a task that has already been chosen by somebody else?

4. Something else? If so, tell us more about the overall layout of your sheet and exactly what you are trying to achieve.
 

Forum statistics

Threads
1,082,276
Messages
5,364,196
Members
400,786
Latest member
ismi88

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top