I am building an Excel sheet to link football stats to a TV graphics computer and I've hit a road block. There are two workbooks, one for the team and one that contains all the stats for every player in the NFL for last season.
The Team sheet pulls in the roster from Yahoo sports on a web query and then pulls in the all the stats from NFL sheet.
On page 2 of the roster sheet it sorts out the players by uniform number (this is important in recalling the right player to air). Now the roadblock. I need to pull stats from five different for each player but which five depends on the player's position.
For example:
4 JOHN DOE K
17 JOE SMITH QB
16 TOM ROE WR
I need a formula that says if cell A4 says "K" return Cells 24, 25, 26, 27 and 28, if cell A4 says "QB" return Cells 10, 12, 15, 16 and 17, if cell A4 says "WR" return Cells 10, 11, 12, 13 and 16, etc. There are eleven possible positions to sort by.
Any suggestions?
The Team sheet pulls in the roster from Yahoo sports on a web query and then pulls in the all the stats from NFL sheet.
On page 2 of the roster sheet it sorts out the players by uniform number (this is important in recalling the right player to air). Now the roadblock. I need to pull stats from five different for each player but which five depends on the player's position.
For example:
4 JOHN DOE K
17 JOE SMITH QB
16 TOM ROE WR
I need a formula that says if cell A4 says "K" return Cells 24, 25, 26, 27 and 28, if cell A4 says "QB" return Cells 10, 12, 15, 16 and 17, if cell A4 says "WR" return Cells 10, 11, 12, 13 and 16, etc. There are eleven possible positions to sort by.
Any suggestions?