I've been looking online for a solution to sorting names alphabetically using the surname but all the solutions come via using two columns, one for the first name, one for the surname. I wanted to avoid that as when published to a webpage it is not very attractive. At the moment I have the names listed Adams. Brian, Adams. Linda, Brown, Dave, etc because they normally are used alphabetically but sometimes when you are doing result tables the names move up and down. I would however like to exhibit the names as Brian Adams, Linda Adams, Dave Brown, etc because I think they are aesthetically better. Especially when in a pair or a team. Brian Adams & Dave Brown looks so much better than Adams. Brian & Brown. Dave. Anyway the solution I came up with is to number the names Alphabetically in a hidden preceding column and then when sorting by say points, highest points first, then the number column representing the name. This works, but I just wondered if there were a better way to go. For a start the If statement would be very long if you had 50 names, one of my charts has 150. I currently have =IFS(I7=1,$G$7,I7=2,$G$8,I7=3,$G$9) and that's just for 3 names. Maybe the solution is the right way to go but there is a better formula to use or there is a better solution altogether?
I've attached a workbook as an example, in case you can't picture what I'm asking. Example 4 is the solution, sorting by K and then I. I'd use VBA to update each time data was added.
Thank you.
Bookmarks