Forum Discussion

mgpnextgen's avatar
mgpnextgen
Copper Contributor
Jul 19, 2019

How do I create a spreadsheet that randomizes a list of names within groups?

How do I create a spreadsheet that takes a list of names, contained within groups and generates a random order of those names (still contained within their groups).

 

For example:

 

QA Team

Name 1

Name 2

Name 3

 

UX Team

Name 1

Name 2

Name 3

 

Then, perhaps using a user created built in function, change the order of those names. For example, using the list above after executing the function/formula, generates the following new list:

 

UX Team

Name 2

Name 3

Name 1

 

QA Team

Name 3

Name 1

Name 2

 

I also want to be able to add or remove names from the sheet, preferably via a form? There is a Randomizer App in the Microsoft Store but this only generates different list of individual names. I need to be able to maintain the groups.

 

4 Replies

  • Kodipady's avatar
    Kodipady
    Iron Contributor

    mgpnextgen 

    You can create a sortkey column in your table, please update this with excel formula RAND().  Now sort the table by team name and sortkey.   RAND() output keeps changing often with every update.  you sort order will also change accordingly. 

     

    Team name Name Sortkey

    QA TeamName 40.224421
    QA TeamName 60.107234
    QA TeamName 50.031831
    UX TeamName 30.775804
    UX TeamName 10.082853
    UX TeamName 20.974162

     

    • mgpnextgen's avatar
      mgpnextgen
      Copper Contributor

      Kodipady 

       

      Thank you. I will try this today. Please note that my Excel experience is weak at best. I can create standards spreadsheets and usually find that I'm best at taking a template and modifying it. Once I start getting into editing formulas, I am in over my head...

    • mgpnextgen's avatar
      mgpnextgen
      Copper Contributor

      Liam Bastick 

       

      Thanks very much! I appreciate the quick reply. I'll give this shot and see how it works out.

       

      -Mike

Resources