How To Generate All Possible Combinations Of Items From One List

edebe

New Member
Joined
Aug 18, 2021
Messages
23
Office Version
  1. 2010
Platform
  1. Windows
Hi to everybody,

I do have a problem for which I would like to ask your help. I do have a list with decimal number values and I need to calculate all the possible combinations without repetitions.

As you can see in the attached image, I need to calculate not simply 1-element-based combinations, but I need also to calculate all the combinations for 2,3,4,5,6,7,8,9,10-based element combinations.
comb.jpg


I already used the combin function to understand how many combinations I will have. Considering that I have 11 elements, the total of the possible combinations are 2047 (no repetitions):
fig. 2.jpg


Considering that I'm a rookie, I would like to ask you how can I make this operation without loosing too much time. Thank you in Advance for your help!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Sorry, I meant I've amended the code from Mick in that thread, so now it will give you the sum of the combination.
 
Upvote 0
Sorry, I meant I've amended the code from Mick in that thread, so now it will give you the sum of the combination.
Ah I see, thanks for that. Now I'll try to make it work somehow.
 
Upvote 0
Here's an example:
dhee - combination.xlsm
ABCDEFG
171,0071,0071,00
253,2253,2253,22
348,0048,0048,00
425,0025,0025,00
571,0053,22124,22
671,0048,00119,00
771,0025,0096,00
853,2248,00101,22
953,2225,0078,22
1048,0025,0073,00
1171,0053,2248,00172,22
1271,0053,2225,00149,22
1371,0048,0025,00144,00
1453,2248,0025,00126,22
1571,0053,2248,0025,00197,22
Sheet2
 
Upvote 0

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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