Sorting A list by Groups

Magoo

New Member
Joined
May 3, 2002
Messages
28
Hi

I am currently trying to sort a list that has been broken down into groups. The spreadsheet is to keep tally of the scores in a competition (both for individuals and team events)

Col A Col B Col C Col D
Name Team Name Score Blank
Name Team Name Score Blank
Name Team Name Score Subtotal of Team

This format is repeated for each team. I would like to sort the list to keep the teams (groups) together and end up with a list that represents 1st, 2nd, 3rd and so on. Can anyone shed some light on this for me :)
This message was edited by Magoo on 2002-05-04 23:48
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Select the columns you which to include then utilize the Data..Sort Item from the tool bar.
 
Upvote 0
You really don't need to include a sub-total row of information for each team ... just use the ... Data..subtotal feature from the toolbar.
 
Upvote 0
When I use the Data>Sort function the spreadsheet sorts all the subtotals and places them at the top of the spreadsheet and the rest of the data below. It separates the subtotal from the rest of the data :(
 
Upvote 0
First do not put any totals or subtotals in the data.
Second : utilize the sort feature on data
Third: use the data ..subtotal.. feature to have excel create the subtotals for you.
 
Upvote 0
Okey Dokey

I have done this, now I have a spreadsheet with all the team scores all subtotaled nicely . . . . .

Now, how do I sort all of this to give me a 1st, 2nd, 3rd, etc whilst keeping all my teams grouped together :?
 
Upvote 0
How about having a seperate column for a teams total score then you can use that as one of the columns to sort by ?

example:
colA colb colc
teama 10 23
teamb 11 25
teama 13 23
teamb 14 25

the subtotal column .. in THIS example could be calculated with this formula in each cell of colC : =SUMIF(A:A,A:A,B:B)
A:A = col where team names are
B:B = col where scores are

Then all you would need to do is sort first by subtotal then by Team and Team individual game scores.
 
Upvote 0
Also have a look at Pivot tables, they love this sort of thing....

specifically, you can total by team and have it sorted according to the results, with a bit of trial and error if you've not used them before
 
Upvote 0
After many hours playing with the SUMIF function and many, many more hours looking at pivot tables I have reached the following solution.

If I simply calculate the subtotals for each team and place this subtotal into the last column next to each and every team member, then sort from there. This is a bit cumbersome, but works.

thanks for your help
 
Upvote 0

Forum statistics

Threads
1,213,537
Messages
6,114,216
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top