Shuffle/Randomize from list of names

geoff1544

New Member
Joined
Dec 26, 2013
Messages
1
Hello,

Im trying to have a cell populate if conditions are met in 2 others cells (ive been using an If statement). I would like the cell that will populate to pull from a list of names and the results to evenly randomize or just choose from the next name on the list (and start from the beginning once it gets to the bottom of the list). Example


Cell A1 Header is "EcoSystems"
Cell B1 is "Species"
Cell C1 is "Subspecies"

If A2 and B2 = a condition, I want C2 to pull from a group of names that are in column D. I cant ranomdize it appears because it will duplicate a response from time to time. So the only way is to create a forumula that wont duplicate or just chooses the next name on the list.

Any help would be greatly appreciated!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
You might be able to accomplish the 'easily randomize' option by using a combination of RAND, RANK and INDEX. If names are in column D then define two helper columns: for example, column E containing a random number (=RAND()) corresponding to each name, and column F containing a RANK formula that ranks each random number in column E with respect to all random numbers in column E. This will produce a randomized ordering of the index of each name within the list of names. Then in column C, instead of referring directly to the list of names - use an INDEX function and the random ordering of indices in column F to refer to a random name in the list.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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