Thanks for your suggestion. I could do the sorting as you suggested. That was not the problem. The challenge is in getting the ranking score inserted based on the result of this sort. If you see the attached spreadsheet, the creation of the data in the highlighted column named Ranking is the...