Formula to select random cell value from multiple columns without duplicates

Copper Contributor

So I have 7 columns (groups) of data. I'd like to randomly select a cell value from any of the groups several times (say, 5 times) without duplicates. The results should be categorised into their respective groups i.e. if cell B8 was the random selection and is from group 1, the result should be displayed in group 1 in another table (see sample file). What would the formula look like? Thanks for your help!

1 Reply

@falguthmy Not sure what your intentions are with the columns rilled with =RAND(), but I believe the attached workbook (made on a Mac) contains what you asked for, provided that your Excel supports dynamic array functions.

 

I slightly changed the layout of your worksheet and introduced a hidden "helper section" below row 19. Here, a list of random numbers is calculated from 1 to 49 (being the number of items in the 7 groups). Then the first 5 are selected and the the corresponding value from the groups above is picked-up and categorised in the correct group.