I know how to sort a table of data based on different criteria, but I was wondering if there is a way I can custom sort a single column based on multiple criteria from other columns. I'd like it in a macro, because I want it to update the sort every time I submit data from a userform.
Here's what I got:
My worksheet has 4 columns. Starting in A: Player Names, Wins, Losses, and Rank. I don't want to rearrange the order of A, B, or C, because then it messes with some of the code I have written and some of the controls in my Userform. So, I want Column D (Rank) to be rearranged based on this criteria: First Wins-Descending (Column B), Second Losses-Ascending (Column C). So it should look something like this:
It would start like this
Player Name__Wins__Losses__Rank
Player1_______0______0_____1
Player2_______0______0_____2
Player3_______0______0_____3
And then after a few matches it would look like this.
Player Name__Wins__Losses__Rank
Player1_______2______1_____2
Player2_______1______2_____3
Player3_______3______0_____1
Thanks for any help.
Here's what I got:
My worksheet has 4 columns. Starting in A: Player Names, Wins, Losses, and Rank. I don't want to rearrange the order of A, B, or C, because then it messes with some of the code I have written and some of the controls in my Userform. So, I want Column D (Rank) to be rearranged based on this criteria: First Wins-Descending (Column B), Second Losses-Ascending (Column C). So it should look something like this:
It would start like this
Player Name__Wins__Losses__Rank
Player1_______0______0_____1
Player2_______0______0_____2
Player3_______0______0_____3
And then after a few matches it would look like this.
Player Name__Wins__Losses__Rank
Player1_______2______1_____2
Player2_______1______2_____3
Player3_______3______0_____1
Thanks for any help.