-2

is there any formula which will help me split randomly a dynamic list of names into 6 different groups?.

I would like each group to have as equal as possible amount of names.

Here is a google sheet example:https://docs.google.com/spreadsheets/d/1ChIGf3WyfUzEsdCH8VfxaJDa7QNDJb8VIhBfV7p8b-w/edit?gid=0#gid=0

1
  • 2
    Questions should be self-contained and not rely on external links. Please edit your question and insert a table of sample data together with another table that shows your manually entered desired results. Commented Oct 27 at 11:34

2 Answers 2

2

Use wraprows(), sort() and randarray(), like this:

=wraprows(sort(tocol(A2:A, 1), randarray(counta(A2:A)), true), 6,)

The results will update every time you modify the spreadsheet. To fix the groups in place, use copy-paste as values (Edit > Paste special > Values only.)

See wraprows(), sort(), randarray() and your sample spreadsheet.

Sign up to request clarification or add additional context in comments.

Comments

0

You can use this formula in Google Docs to make six random groups of names!:

=MOD(RANK(RAND(), $A$2:$A), 6) + 1

This is what each individual command does:

  • RAND() assigns each name a random decimal

  • RANK() orders those randomly

  • MOD(..., 6) + 1 splits into 6 roughly equal groups

1 Comment

Thank you for your input, unfortunately am getting error message "RANK has no valid input data.". I have added editor access to example sheet if you want to try yourself as i might miss something. Thank you once more for your answer.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.