Hi mspincus,
In regards to your issue, I have come up with the following solution. Note: I am using Excel 2013 PowerPivot, so ensure you have PowerPivot enabled (Excel 2010 requires a Microsoft add-in).
Assumptions:
- I had to normalize the raw data so that Team Name was another column
- The calculation for the team score is a SUM, not an AVG
- Select your whole data
- Format as table (Home > Format as Table)
- Name your table (Design > TableName)
- Add to data model (Powerpivot > Add to Data Model)
- View Powerpivot interface if not already in focus (PowerPivot > Manage)
- At the end of the first row, add in the calculation
=RANKX(ALL(GolfScores), CALCULATE(SUM([Thur]), FILTER(ALL(GolfScores), [Team Name]=EARLIER([Team Name]))), , 1, Dense)
- Name the column 'Thurs Rank'
- In the calculation area under 'Thurs Rank', add the calculation
Thurs Team:=LOOKUPVALUE([Team Name], [Thurs Rank], 1)
- Bring your spreadsheet back into focus
- On the row directly after the table under the Thur column, add the following calculation
=CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Thurs Team]")
- Repeat steps 4 to 8, but for Fri, Sat and Sun
Result:
[TABLE="class: grid, width: 594"]
<tbody>[TR]
[TD]Team Name[/TD]
[TD]Golfer Name[/TD]
[TD]Thur[/TD]
[TD]Fri[/TD]
[TD]Sat[/TD]
[TD]Sun[/TD]
[/TR]
[TR]
[TD]Scott[/TD]
[TD]Golfer 1[/TD]
[TD="align: right"]-5[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]-4[/TD]
[/TR]
[TR]
[TD]Scott[/TD]
[TD]Golfer 2[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Scott[/TD]
[TD]Golfer 3[/TD]
[TD="align: right"]-5[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-1[/TD]
[/TR]
[TR]
[TD]Scott[/TD]
[TD]Golfer 4[/TD]
[TD="align: right"]-5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]-1[/TD]
[/TR]
[TR]
[TD]Robert[/TD]
[TD]Golfer 5[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]-4[/TD]
[TD="align: right"]-5[/TD]
[TD="align: right"]-2[/TD]
[/TR]
[TR]
[TD]Robert[/TD]
[TD]Golfer 6[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]-2[/TD]
[/TR]
[TR]
[TD]Robert[/TD]
[TD]Golfer 7[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-5[/TD]
[TD="align: right"]-1[/TD]
[/TR]
[TR]
[TD]Robert[/TD]
[TD]Golfer 8[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]Golfer 9[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]-4[/TD]
[TD="align: right"]-5[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]Golfer 10[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]Golfer 11[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-5[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]Golfer 12[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-2[/TD]
[TD="align: right"]-1[/TD]
[TD="align: right"]-5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]
Scott[/TD]
[TD]
Robert[/TD]
[TD]
Robert[/TD]
[TD]
Jack[/TD]
[/TR]
</tbody>[/TABLE]
To provide the below requirement, I have done the following;
So I need to add Thursday total which is -11 and place in order all the teams for thursday then add those to friday and rank all the teams and then saturday etc.
- View Powerpivot interface if not already in focus (PowerPivot > Manage)
- Create pivot table (Home > PivotTable)
- Add Thurs Rank and Team Name to Rows quadrant
- Add Thurs to Values quadrant (optional)
- Reformat the table layout
- Select the Design tab
- Remove subtotals (Subtotals > Do Not Show Subtotals)
- Remove grand totals (Grand Totals > Off for Rows and Columns)
- Change table to tabular layout (Report Layout > Show in Tabular Form)
- Repeat row labels (Report Layout > Repeat All Item Labels)
- As an optional extra, change the pivot table style from the list of PivotTable Styles selection (I prefer Pivot Style Medium 6)
- Repeat steps 2 to 5, but for Fri, Sat and Sun
Result:
[TABLE="class: grid, width: 266"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Thurs Rank[/TD]
[TD]Team Name[/TD]
[TD]Sum of Thur[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Scott[/TD]
[TD="align: right"]-11[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Jack[/TD]
[TD="align: right"]-5[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Robert[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 263"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Fri Rank[/TD]
[TD]Team Name[/TD]
[TD]Sum of Fri[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Robert[/TD]
[TD="align: right"]-6[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Scott[/TD]
[TD="align: right"]-5[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Jack[/TD]
[TD="align: right"]1
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 266"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Sat Rank[/TD]
[TD]Team Name[/TD]
[TD]Sum of Sat[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Robert[/TD]
[TD="align: right"]-11[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Jack[/TD]
[TD="align: right"]-6[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Scott[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 263"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Sun Rank[/TD]
[TD]Team Name[/TD]
[TD]Sum of Sun[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Jack[/TD]
[TD="align: right"]-11[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Scott[/TD]
[TD="align: right"]-6[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Robert[/TD]
[TD="align: right"]-5[/TD]
[/TR]
</tbody>[/TABLE]
If you want to get fancy, instead of selecting pivot table option, select 'Four Charts' and do steps 3 to 5.
Here is my example file:
https://www.dropbox.com/s/l9hsxs7pydxselm/Golf Example.xlsx
Kim.