MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 5th, 2002, 12:39 AM   #1
Magoo
New Member
 
Join Date: May 2002
Posts: 28
Default

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 ]
Magoo is offline   Reply With Quote
Old May 5th, 2002, 12:47 AM   #2
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

Select the columns you which to include then utilize the Data..Sort Item from the tool bar.
Nimrod is offline   Reply With Quote
Old May 5th, 2002, 12:49 AM   #3
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

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.
Nimrod is offline   Reply With Quote
Old May 5th, 2002, 12:52 AM   #4
Magoo
New Member
 
Join Date: May 2002
Posts: 28
Default

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
Magoo is offline   Reply With Quote
Old May 5th, 2002, 01:02 AM   #5
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

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.
Nimrod is offline   Reply With Quote
Old May 5th, 2002, 01:21 AM   #6
Magoo
New Member
 
Join Date: May 2002
Posts: 28
Default

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 :?
Magoo is offline   Reply With Quote
Old May 5th, 2002, 01:45 AM   #7
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

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.
Nimrod is offline   Reply With Quote
Old May 5th, 2002, 04:44 AM   #8
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

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
__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Old May 6th, 2002, 08:33 PM   #9
Magoo
New Member
 
Join Date: May 2002
Posts: 28
Default

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
Magoo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes