Tricky combinations generate using following distribution

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Using Excel 2000

Hi,

Formula column M shows the TT: Cobinationes could be made with each distribution as per C:K columns


Book1
CDEFGHIJKLMN
51|11|XX|11|22|1X|22|XX|X2|2SumTT:Combinations
62130100007420
73030010007140
81330000007140
9000304000735
10005020000721
11005100001742
1201221100071.260
130123010007420
Sheet1
Cell Formulas
RangeFormula
M6=SUM(C6:K6)
M7=SUM(C7:K7)
M8=SUM(C8:K8)
M9=SUM(C9:K9)
M10=SUM(C10:K10)
M11=SUM(C11:K11)
M12=SUM(C12:K12)
M13=SUM(C13:K13)
N6{=FACT(SUM(C6:K6))/PRODUCT(FACT(C6:K6))}
Press CTRL+SHIFT+ENTER to enter array formulas.


I need VBA, which can generate 420 unique combinations if I use following distribution in cells K6:S6 distribution length is 9 and sum will be always = 7

Does it is possible to get combinations with length 7 in columns C:I, only unique = 420 the example below shown just few dummy combinations in the columns C:I

Example…


Book1
CDEFGHIJKLMNOPQRSTU
1
2
3
4
5P1P2P3P4P5P6P71|11|XX|11|22|1X|22|XX|X2|2TT:Combinations
61|11|11|X2|1X|1X|1X|1213010000420
71|11|11|XX|12|1X|1X|1
81|11|11|XX|1X|12|1X|1
91|11|11|XX|1X|1X|12|1
101|11|12|1X|1X|1X|11|X
111|11|12|11|XX|1X|1X|1
121|11|12|1X|1X|11|XX|1
131|11|12|1X|11|XX|1X|1
141|11|1X|1X|12|1X|11|X
151|11|1X|11|XX|12|1X|1
161|11|1X|1X|1X|11|X2|1
171|11|1X|12|11|XX|1X|1
181|11|1X|1X|12|11|XX|1
191|11|1X|1X|1X|12|11|X
201|11|1X|12|1X|1X|11|X
211|11|1X|12|1X|11|XX|1
221|11|1X|11|XX|1X|12|1
231|11|1X|1X|11|XX|12|1
241|11|1X|11|X2|1X|1X|1
251|11|1X|1X|11|X2|1X|1
261|11|X1|1X|12|1X|1X|1
271|11|X1|1X|1X|1X|12|1
281|11|X1|12|1X|1X|1X|1
291|11|X1|1X|1X|12|1X|1
301|11|X2|1X|11|1X|1X|1
311|11|X2|1X|1X|11|1X|1
321|11|X2|1X|1X|1X|11|1
331|11|X2|11|1X|1X|1X|1
Sheet2


Thank you in advance

Regards,
Kishan
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,<o:p></o:p>
<o:p></o:p>
I think there would not be any formula solution only the VBA if formula solution will be the ok.I understand it is complicate I need it if any help I do appreciate or any suggestion how to get solved may be changing the request format<o:p></o:p>
<o:p></o:p>
Thank you<o:p></o:p>
<o:p></o:p>
Regards,<o:p></o:p>
Kishan<o:p></o:p>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,009
Messages
6,122,674
Members
449,091
Latest member
peppernaut

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