Hi all,
I have a giant database of NBA players and their NBA 2k ratings, what I'm trying to do is automatically pull them into team lists:
To get the starting 5 I use this formula in column C: =INDEX(Players!$B:$B,MATCH(MAXIFS(Players!$E:$E,Players!$G:$G,A$1,Players!$F:$F,A2),IF(Players!$G:$G=A$1,IF(Players!$F:$F=A2,Players!$E:$E)),0))
Column A is stagnant for the positions and columns B & D pull through from the Players! sheet based on C
The formula works by looking in the Players! sheet for the highest rated (ratings in $E) player of the starting 5 positions (positions in $F) of the team (team in $G)
Where I'm having trouble is filling out the bench:
I've used this formula to return every player for the Hawks using $G in the Players! sheet again: =IFERROR(INDEX(Players!$B:$B, SMALL(IF((A$1=Players!$G:$G), MATCH(ROW(Players!$G:$G), ROW(Players!$G:$G)), ""),ROWS($A$1:A1))),"")
Is there any way to:
a) return this list sorted by rating in column D (and found in $E in the Players! sheet), and
b) leave out the players already returned in the starting 5 in rows 2-6?
Note: the positions are dynamic in the bench and pull from the Players! sheet
Any help would be much appreciated.
Cheers
I have a giant database of NBA players and their NBA 2k ratings, what I'm trying to do is automatically pull them into team lists:
To get the starting 5 I use this formula in column C: =INDEX(Players!$B:$B,MATCH(MAXIFS(Players!$E:$E,Players!$G:$G,A$1,Players!$F:$F,A2),IF(Players!$G:$G=A$1,IF(Players!$F:$F=A2,Players!$E:$E)),0))
Column A is stagnant for the positions and columns B & D pull through from the Players! sheet based on C
The formula works by looking in the Players! sheet for the highest rated (ratings in $E) player of the starting 5 positions (positions in $F) of the team (team in $G)
Where I'm having trouble is filling out the bench:
I've used this formula to return every player for the Hawks using $G in the Players! sheet again: =IFERROR(INDEX(Players!$B:$B, SMALL(IF((A$1=Players!$G:$G), MATCH(ROW(Players!$G:$G), ROW(Players!$G:$G)), ""),ROWS($A$1:A1))),"")
Is there any way to:
a) return this list sorted by rating in column D (and found in $E in the Players! sheet), and
b) leave out the players already returned in the starting 5 in rows 2-6?
Note: the positions are dynamic in the bench and pull from the Players! sheet
Any help would be much appreciated.
Cheers