Forum Discussion
DerrellSC
Feb 08, 2023Copper Contributor
Sort function with countif?
Is it possible to sort 2 columns based on the second when the second is using counif? I am tracking wins in a round robin badminton tournament and use countif to look for winner's names in a differe...
DerrellSC
Feb 22, 2023Copper Contributor
Here is one of my Round Robin tournaments. As I update the winners in the column, it does count, but can it automatically sort the column without creating and additional "ranking" column?
- Patrick2788Feb 22, 2023Silver Contributor
Perhaps this one:
=LET(uWinner,UNIQUE(TOCOL(winner,1)),k,ROWS(uWinner),stack,HSTACK(uWinner,COUNTIF(winner,uWinner)),HSTACK(SEQUENCE(k),SORT(stack,2,-1)))
- DerrellSCFeb 27, 2023Copper Contributor
Patrick2788 Thank you, but I don't want to add another set of data.
- Patrick2788Feb 27, 2023Silver ContributorI think you've misunderstood my solution. It's not adding another set of data. It would replace what's already there.