Generate permutations of r length from list of n length

healmo

New Member
Joined
Feb 13, 2025
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have a list of 70 pieces of equipment in one column. Need to generate random picks of 21 of those equipment. Ideally generate all possible lists of 21 pieces of equipment out of the list of 70. Don’t know where to start in Excel. I’m not a programmer, I just try to use formulas in Excel.
 
Hello,

To generate one random list of 21 picks in a 70 set is okay. However generate all of them… Just write =COMBIN(70, 21) in a cell to get an idea of how much they are.
 
Upvote 0
Hello,

To generate one random list of 21 picks in a 70 set is okay. However generate all of them… Just write =COMBIN(70, 21) in a cell to get an idea of how much they are.
You’re right, too many. I could start generating a couple random lists of 21 picks from a 70 set. Do you know how I could do that?
 
Upvote 0
Welcome to the MrExcel board!

Here is a smaller example that you could scale up.

25 02 13.xlsm
AB
1
2Item 1Item 2
3Item 2Item 18
4Item 3Item 6
5Item 4Item 17
6Item 5Item 16
7Item 6Item 3
8Item 7
9Item 8
10Item 9
11Item 10
12Item 11
13Item 12
14Item 13
15Item 14
16Item 15
17Item 16
18Item 17
19Item 18
20Item 19
21Item 20
22
Random list
Cell Formulas
RangeFormula
B2:B7B2=TAKE(SORTBY(A2:A21,RANDARRAY(ROWS(A2:A21))),6)
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,226,797
Messages
6,193,055
Members
453,772
Latest member
aastupin

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