Consider a series of digits (say 1-6). We know that there are 6 factorial or 720 different arrangements of these digits. Tt is possible to create these 720 examples in a table, and sort them into a standard sequence, give each one a unique index, and use a simple Vlookup to find any given arrangement.
Now for the challenge: if there are more integers (say 12) the list becomes 479 Million rows - too much for Excel. Can someone help me calculate (formulae or VBA) from a given index what the unique series arrangement would be if we had a complete database of them stored as above?
The first position can be done like this: 1+(given index / int(fact(11)-1))
thanks
Swash004
Now for the challenge: if there are more integers (say 12) the list becomes 479 Million rows - too much for Excel. Can someone help me calculate (formulae or VBA) from a given index what the unique series arrangement would be if we had a complete database of them stored as above?
The first position can be done like this: 1+(given index / int(fact(11)-1))
thanks
Swash004