Need help with "randomly" sorting a list of names in a column but with a specific condition.

ernesto123

New Member
Joined
Jan 8, 2014
Messages
1
Hello,

I need help...

I have a list of x number of names in a column (at least 50, but the list could contain 300 or more names including empty cells), and I want the names to be "randomly" sorted with one name at a time being selected and output into a separate cell, without repeating, for up to 30 selections. After 30 of the names have been selected, including blank cells in the column, I'd like the formula (or code) to repeat the process of "randomly" selecting any 30 names/cells on the list (including names/cells from the last cycle), but just not repeating any of the cells for that cycle of 30 selections.


Currently, I'm using a couple formulas to randomly select any of the cells in a column including empty cells, but there's too much repetition, even with a list of 100 or more cells. I just want something to break up the possible repetition, but still be able to select those cells after 30 or so selections. Here are the formulas I'm currently using, but both end up giving me too much repetition:

=OFFSET(Sheet1!$A$6,RANDBETWEEN(1,COUNTA(Sheet1!$A:$A)-1),0)

=INDEX($B:$B,RANDBETWEEN(1,COUNTA($B:$B)),1)

I prefer working with formulas, but if code would be the easier fix, then that works too. By the way, I'm not a formula or code guru...

Any help would be much appreciated!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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