Here is an attempt by formula.
poker.png
In a few cases it does not reproduce the expected results exactly, but maybe some or all of the differences are acceptable. I'm no poker player so I will leave it to you to decide if there is any value to this approach.
I added column-E to value the cards from lowest to highest. It goes from 1 for the 2 of spades to 52 for the Ace of hearts.
M4:Q14 is a helper range that takes the entered cards in G4:K14 and translates to the col-E values. In M4 copied across and down:
My solution is in S4:W14 and arranges the M4:Q4 row in ascending order and then translates back to the card names. The same thing for rows 5 thru 14. In S4 copied across and down to W14:
There's not much flexibility in this approach to "tune" it as far as I can see currently, so it's either acceptable as is or it is of no value to you.
I've attached your workbook with the above changes included.
Let me know what you think
Bookmarks