Hi
See my proposal for your problem.
First column: Use in A2 and drag down to row 4096
This formula gives us all possible combinations of 12 elements (4096) (-1 because I do not considered the value zero)
Notes:
Sheet x is a dummy (empty) sheet to use with ROW and COL and not perturb the sheet we use.
Excel DEC2BIN use only 9 digits, but we need 12 digits.
In B2 and C2 use the following formulas and copy C2 to D2 (C are row and D are column
You can see I split your table Low/High into two tables, table LOW in $V$3:$AG$14 and HIGH in $AI$3:$AT$14
To do the first step use in E2 the following formula
In V18 use the formula to get the 1st. step table V18:AG18
In F2 use the following formula to mark the combinations that has 6 digits "1"
So, we can combine each (first, second, ...) digit "1" with (first, second, ...) "0" from right to left.
Columns G:L use in G2 the formula
Columns M:R use in M2 the formula
Column S has the value of each valid group
The solution are in V31:AI32 ...
3.670 63 1 2 3 4 5 6 7 8 9 10 11 12 (first place)
3.701 95 1 2 3 4 5 7 6 8 9 10 11 12 (second place)
The value 3.670 are in row 63 (Excel row 64) and the group are 1-7, 2-8, 3-9, 4-10, 5-11, 6-12
The value 3.701 are in row 95 (Excel row 96) and the group are 1-6, 2-8, 3-9, 4-10, 5-11, 7-12
See the file for clarification
Bookmarks