Conditional combination's pick only "1" number from each column in the row <o></o>
<o></o>
Hello,<o></o>
<o></o>
I have some numbers in column D:J (each column has variable quantity of numbers in it) <o></o>
In the column D only 1 number which is 2 (this is like a joker will be used with all the columns numbers to create combinations) <o></o>
In the column E, G, H, I, J there are 2 numbers and in column F there are 4 numbers<o></o>
<o></o>
Require VBA which could make all Conditional combination's picking only "1" number from each column in the row (Conditional combination's) I mean for example in the row can not be used 2 number from any columns, 2 is a common number which will be combined with all column number to create all combinations<o></o>
<o></o>
Some example rows are Conditional combination's listed below in the column N:U <o></o>
<o></o>
<o></o>
Thank you all<o></o>
<o></o>
Excel 2000<o></o>
Regards,
Moti
<o></o>
Hello,<o></o>
<o></o>
I have some numbers in column D:J (each column has variable quantity of numbers in it) <o></o>
In the column D only 1 number which is 2 (this is like a joker will be used with all the columns numbers to create combinations) <o></o>
In the column E, G, H, I, J there are 2 numbers and in column F there are 4 numbers<o></o>
<o></o>
Require VBA which could make all Conditional combination's picking only "1" number from each column in the row (Conditional combination's) I mean for example in the row can not be used 2 number from any columns, 2 is a common number which will be combined with all column number to create all combinations<o></o>
<o></o>
Some example rows are Conditional combination's listed below in the column N:U <o></o>
Book1 | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | |||
1 | |||||||||||||||||||||||
2 | |||||||||||||||||||||||
3 | n1 | n2 | n3 | n4 | n5 | n6 | n7 | R1 | R2 | R3 | R4 | R5 | R6 | R7 | Sum | ||||||||
4 | 2 | 2 | 1 | 0 | 8 | 4 | 2 | 2 | 2 | 1 | 0 | 8 | 4 | 2 | 19 | ||||||||
5 | 6 | 2 | 6 | 23 | 1 | 8 | 2 | 6 | 1 | 0 | 8 | 4 | 2 | 23 | |||||||||
6 | 3 | 2 | 2 | 1 | 6 | 8 | 4 | 2 | 25 | ||||||||||||||
7 | 9 | 2 | 2 | 1 | 0 | 23 | 4 | 2 | 34 | ||||||||||||||
8 | 2 | 2 | 1 | 0 | 8 | 1 | 2 | 16 | |||||||||||||||
9 | 2 | 2 | 1 | 0 | 8 | 4 | 8 | 25 | |||||||||||||||
10 | 2 | 6 | 2 | 0 | 8 | 4 | 2 | 24 | |||||||||||||||
11 | 2 | 6 | 1 | 6 | 8 | 4 | 2 | 29 | |||||||||||||||
12 | 2 | 6 | 1 | 0 | 23 | 4 | 2 | 38 | |||||||||||||||
13 | 2 | 6 | 1 | 0 | 8 | 4 | 8 | 29 | |||||||||||||||
14 | 2 | 2 | 2 | 6 | 8 | 4 | 2 | 26 | |||||||||||||||
15 | 2 | 2 | 2 | 0 | 23 | 4 | 2 | 35 | |||||||||||||||
16 | 2 | 2 | 2 | 0 | 8 | 1 | 2 | 17 | |||||||||||||||
17 | 2 | 2 | 2 | 0 | 8 | 4 | 8 | 26 | |||||||||||||||
Sheet10 |
<o></o>
Thank you all<o></o>
<o></o>
Excel 2000<o></o>
Regards,
Moti