leehowardblair
New Member
- Joined
- Jul 18, 2011
- Messages
- 9
So I have a bunch of sports stats data... I need to return the players name only 1 time, but with multiple "stat" categories for said player. So I have a macro that allows me to easily get a top 10 of "unique" player names. But then I need a few stats from that player. The problem is that the data comes in on separate rows and some players come in a multiple positions, but I only need the data once.
So here's the data feed:
So I need to return the player only once, regardless of his position and then a few stats (in order score leader), like
Excel 2012
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]9.3[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]8.3[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]6.8[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]6.5[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]5.3[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]5[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]4.8[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]4[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]3.5[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]3.5[/TD]
</tbody>
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]Q2[/TH]
[TD="align: left"]=listUnique($C:$C)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]R2[/TH]
[TD="align: left"]=VLOOKUP($Q2,$C:$O,4,FALSE)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]S2[/TH]
[TD="align: left"]=VLOOKUP($Q2,$C:$O,7,FALSE)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]T2[/TH]
[TD="align: left"]=VLOOKUP($Q2,$C:$O,5,FALSE)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks very much in advance - using excel to try to get what I need out of this xml feed.
So here's the data feed:
Excel 2012 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
C | D | E | F | G | H | I | J | K | L | M | |||
1 | FULL_NAME | firstName | lastName | position | score | salary | team | StatId | Name | Abbreviation | FantasyPoints | ||
2 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 22 | Rebounds | REB | 3.75 | ||
3 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 25 | 3 Points Made | 3PM | 0 | ||
4 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 27 | Assists | AST | 0 | ||
5 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 28 | Blocks | BLK | 0 | ||
6 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 29 | Steals | STL | 0 | ||
7 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 31 | Turnovers | TO | -0.5 | ||
8 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 32 | Points | PTS | 6 | ||
9 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 212 | Double Double | DDbl | 0 | ||
10 | Alex Len | Alex | Len | C | 9.30 | 5100 | Pho | 213 | Triple Double | TDbl | 0 | ||
11 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 22 | Rebounds | REB | 3.75 | ||
12 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 25 | 3 Points Made | 3PM | 0 | ||
13 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 27 | Assists | AST | 0 | ||
14 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 28 | Blocks | BLK | 0 | ||
15 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 29 | Steals | STL | 0 | ||
16 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 31 | Turnovers | TO | -0.5 | ||
17 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 32 | Points | PTS | 6 | ||
18 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 212 | Double Double | DDbl | 0 | ||
19 | Alex Len | Alex | Len | UTIL | 9.30 | 5100 | Pho | 213 | Triple Double | TDbl | 0 | ||
20 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 22 | Rebounds | REB | 1.25 | ||
21 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 25 | 3 Points Made | 3PM | 0 | ||
22 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 27 | Assists | AST | 4.5 | ||
23 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 28 | Blocks | BLK | 0 | ||
24 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 29 | Steals | STL | 0 | ||
25 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 31 | Turnovers | TO | -1.5 | ||
26 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 32 | Points | PTS | 4 | ||
27 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 212 | Double Double | DDbl | 0 | ||
28 | Emmanuel Mudiay | Emmanuel | Mudiay | PG | 8.30 | 5900 | Den | 213 | Triple Double | TDbl | 0 | ||
29 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 22 | Rebounds | REB | 1.25 | ||
30 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 25 | 3 Points Made | 3PM | 0 | ||
31 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 27 | Assists | AST | 4.5 | ||
32 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 28 | Blocks | BLK | 0 | ||
33 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 29 | Steals | STL | 0 | ||
34 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 31 | Turnovers | TO | -1.5 | ||
35 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 32 | Points | PTS | 4 | ||
36 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 212 | Double Double | DDbl | 0 | ||
37 | Emmanuel Mudiay | Emmanuel | Mudiay | G | 8.30 | 5900 | Den | 213 | Triple Double | TDbl | 0 | ||
38 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 22 | Rebounds | REB | 1.25 | ||
39 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 25 | 3 Points Made | 3PM | 0 | ||
40 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 27 | Assists | AST | 4.5 | ||
41 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 28 | Blocks | BLK | 0 | ||
42 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 29 | Steals | STL | 0 | ||
43 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 31 | Turnovers | TO | -1.5 | ||
44 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 32 | Points | PTS | 4 | ||
45 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 212 | Double Double | DDbl | 0 | ||
46 | Emmanuel Mudiay | Emmanuel | Mudiay | UTIL | 8.30 | 5900 | Den | 213 | Triple Double | TDbl | 0 | ||
NBA_DATA |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2 | =[@firstName]&" "&[@lastName] |
So I need to return the player only once, regardless of his position and then a few stats (in order score leader), like
Excel 2012
Q | R | S | T | U | V | W | |
---|---|---|---|---|---|---|---|
FULL_NAME | POSITION | TEAM | SCORE | PTS | 3PM | ASSISTS | |
Alex Len | C | Pho | HELP??? | HELP??? | HELP??? | ||
Emmanuel Mudiay | PG | Den | HELP??? | HELP??? | HELP??? | ||
C.J. McCollum | SG | Por | HELP??? | HELP??? | HELP??? | ||
Noah Vonleh | PF | Por | HELP??? | HELP??? | HELP??? | ||
Leandro Barbosa | PG | Pho | HELP??? | HELP??? | HELP??? | ||
Lou Williams | SG | LAL | HELP??? | HELP??? | HELP??? | ||
Allen Crabbe | SG | Por | HELP??? | HELP??? | HELP??? | ||
Julius Randle | PF | LAL | HELP??? | HELP??? | HELP??? | ||
Tyler Ulis | PG | Pho | HELP??? | HELP??? | HELP??? | ||
Dragan Bender | PF | Pho | HELP??? | HELP??? | HELP??? |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]9.3[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]8.3[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]6.8[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]6.5[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]5.3[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]5[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]4.8[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]4[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]3.5[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]3.5[/TD]
</tbody>
NBA_DATA
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]Q2[/TH]
[TD="align: left"]=listUnique($C:$C)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]R2[/TH]
[TD="align: left"]=VLOOKUP($Q2,$C:$O,4,FALSE)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]S2[/TH]
[TD="align: left"]=VLOOKUP($Q2,$C:$O,7,FALSE)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]T2[/TH]
[TD="align: left"]=VLOOKUP($Q2,$C:$O,5,FALSE)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks very much in advance - using excel to try to get what I need out of this xml feed.
Last edited: