Hello,</SPAN></SPAN>
I want to know is there any formula, which can count permutation can be made using 3-digit with 0, 1 & 2 </SPAN></SPAN>
And a VBA, which can make all possible permutation, using 3-digit with 0, 1 & 2 using 7 cells with in the row which row sum must be = 7</SPAN></SPAN>
Few examples...</SPAN></SPAN>
Thank you all</SPAN></SPAN>
Excel 2000</SPAN></SPAN>
Regards,</SPAN></SPAN>
Moti</SPAN></SPAN>
I want to know is there any formula, which can count permutation can be made using 3-digit with 0, 1 & 2 </SPAN></SPAN>
And a VBA, which can make all possible permutation, using 3-digit with 0, 1 & 2 using 7 cells with in the row which row sum must be = 7</SPAN></SPAN>
Few examples...</SPAN></SPAN>
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
E | F | G | H | I | J | K | L | |||
1 | ||||||||||
2 | ||||||||||
3 | n1 | n2 | n3 | n4 | n5 | n6 | n7 | Sum | ||
4 | 0 | 0 | 1 | 2 | 1 | 1 | 2 | 7 | ||
5 | 1 | 2 | 2 | 1 | 0 | 1 | 0 | 7 | ||
6 | 0 | 1 | 1 | 1 | 1 | 1 | 2 | 7 | ||
7 | 1 | 0 | 1 | 1 | 2 | 1 | 1 | 7 | ||
8 | 1 | 0 | 2 | 1 | 1 | 1 | 1 | 7 | ||
9 | 0 | 1 | 1 | 2 | 1 | 1 | 1 | 7 | ||
10 | 1 | 1 | 2 | 0 | 0 | 1 | 2 | 7 | ||
11 | 2 | 1 | 1 | 1 | 0 | 1 | 1 | 7 | ||
12 | 2 | 1 | 0 | 0 | 1 | 1 | 2 | 7 | ||
13 | 1 | 1 | 0 | 1 | 1 | 2 | 1 | 7 | ||
14 | 0 | 1 | 2 | 1 | 0 | 1 | 2 | 7 | ||
15 | 1 | 1 | 1 | 2 | 1 | 0 | 1 | 7 | ||
16 | 2 | 1 | 0 | 0 | 1 | 1 | 2 | 7 | ||
17 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 7 | ||
18 | 2 | 0 | 1 | 2 | 1 | 0 | 1 | 7 | ||
19 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