This should deliver it for you ..
Save this sample from my archives to a folder & open the file:
http://savefile.com/files/518493
MyrnaLarson_Combination_Permutation.xls
In Sheet1,
Put this in A3, copy down to A54:
=INDEX({"s";"c";"d";"h"},INT((ROWS($1:1)-1)/13)+1)&"-"&INDEX({2;3;4;5;6;7;8;9;10;"J";"Q";"K";"A"},MOD(ROWS($1:1)-1,13)+1)
The above will auto-list the full 52 "cards" into A3:A54, viz:
s-2
s-3
s-4
...
h-Q
h-K
h-A
Then input in A2: 5
(as you want sets of 5 from 52)
Input in A1: C
(C = combination)
Re-select cell A1, then press the button: ListPermutations
Leave it to run overnight. You should get the desired 2.6* mil "poker hand" returns in a new sheet in the morning.
*COMBIN(52,5)
Bookmarks