I need help with my local football team database to display the ever changing football league table. An example of the table is as follows:
TEAM PLAYED WON DRAW LOST SCORED CONCEDED DIFFERENCE POINTS
D 6 4 2 0 12 3 9 14
C 6 3 2 1 10 5 5 11
B 6 3 2 1 10 5 5 11
A 6 3 1 2 11 13 -2 10
I need a formula that sorts the table by "POINTS", "DIFFERENCE", "SCORED", "TEAM"
The cells used are CB3:CJ23 and I have this formula so far which creates a RANK in cells CA4:CA23.
=RANK(CJ4,$CJ$4:$CJ$23,0)+IF(COUNTIF($CJ$4:$CJ$23,CJ4)>1,MATCH(CI4,LARGE(IF($CJ$4:$CJ$23=CJ4,$CI$4:$CI$23),ROW(INDIRECT("1:"&COUNTIF($CJ$4:$CJ$23,CJ4)))),0)-1)+IF(COUNTIF($CI$4:$CI$23,CI4)>1,MATCH(CG4,LARGE(IF($CI$4:$CI$23=CI4,$CG$4:$CG$23),ROW(INDIRECT("1:"&COUNTIF($CI$4:$CI$23,CI4)))),0)-1)
I just need it finishing to do a final sort on the "TEAM" column so that it is in alphabetical order. I have spent several days on this now looking on google and trying different things. Just to confirm, I will be using VLOOKUP function in cells AS4:BA23 to display the football league table based on the RANK value.
Any help would be much appreciated.
Bookmarks