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 14th, 2002, 07:59 PM   #1
repoman
New Member
 
Join Date: May 2002
Posts: 2
Default

Hi,



I Run a indoor cricket team and I taught myself how 2 use the basic functions of excel so I could give the guys some statistics each week to ensure that they all stay competitive right to the end of the games.



I have used a few basic functions but I am having trouble working out how to use the rank formula

I have a column that I am hoping that will be able to constantly rank the guys batting, bowling and fielding but I cant understand what excel is

Referring to when it says



Number

Ref

Order



Sorry to hassle you could you possibly tell me how to use the rank formula

I have attached the document and hope that you have the time to look at it



Yours Sincerely

Alex
repoman is offline   Reply With Quote
Old May 14th, 2002, 08:19 PM   #2
Paul B
Board Regular
 
Join Date: Feb 2002
Location: Georgia USA
Posts: 544
Default

To use rank
If the numbers you want to rank are in A1:A5 in another column put =RANK(A1,$A$1:$A$5) and copy down
Paul B is offline   Reply With Quote
Old May 14th, 2002, 08:42 PM   #3
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi Alex:
To add to Paul's suggestion on using the RANK function ...
say if you had the following in cells A1:A5

42
105
13
9
72
then the formula =RANK(A1,$A$1:SA$5) say in cell B1 will give you 3, and then replicating that formula in B1:B5 will give you the following corresponding ranks:

3
1
4
5
2

If you wanted to dynamically sort the batting averages from top to bottom, use the following array formula in say cell C1

=LARGE(A1:A5,ROW(1:5))
click in cell C1, highlite C1:C5 and CTRL+SHIFT+ENTER

You will see the following in cells C1:c5

105
72
42
13
9

If any number changes in A1:A5, C1:C5 will dynamically adjust to retain the descending order.

Hope This Helps

Please post back if it works for you ... otherwise explain a little further and let us take it from there.

Regards!
Yogi Anand is offline   Reply With Quote
Old May 14th, 2002, 11:30 PM   #4
repoman
New Member
 
Join Date: May 2002
Posts: 2
Default

excuse my stupidity but i need further help
with the formula that you gave me
=RANK(A1,$A$1:SA$5)

rank(number,ref,([order])

Can you please expain how the syntax works. I'll explain what i have grasped so far

A1(ref) are the cells of all the battihng scores

$a$1(ref) I still dont understand

:SA$5(Order) I am not following.

In my excel doc the batting scores cells are
c19,f19,i19,l19,o19,r19,u19,x19,ab19

Where i want them ranked from 1 - 9 is
c23,f23,i23,l23,o23,r23,u23,x23,ab23

Sorry to be a hassle
Alex

repoman is offline   Reply With Quote
Old May 15th, 2002, 01:13 AM   #5
anno
Board Regular
 
Join Date: Feb 2002
Posts: 202
Default

alex
probably the easiest way to explain how this works is to get you to actually do it.

using your example, in cell C23 put =RANK(C19,battingscores,1). ‘battingscores’ is a named range you’ll have to create (i’ll explain how in a minute)which will consist of cells C19,F19,I19,L19,O19,R19,U19,X19,AB19. the reason you have to do it this way is because if you try =RANK(C19,C19,F19,I19,L19,O19,R19,U19,X19,AB19,1) you’ll get an error. it would be easier if your scores were in a continuous range of cells, but no matter. anyway, to continue, in cell F23, put =RANK(F19,battingscores,1). In cell I23, put =RANK(L19,battingscores,1), etc. you get the idea.

to create the range called battingscores (actually you can call it what you want as long as there’s no spaces or some characters – “&”,”#” and similar), first select the cells C19,F19,I19,L19,O19,R19,U19,X19,AB19. to do this select the first cell, then hold down the ctrl key and select all the others in turn. with these cells selected, go to the name box to the left of the formula bar (it should have AB19 in it, the last cell you selected) click and type ‘battingscores’ (without the quotes) and press enter. this is probably getting a bit more complicated than what you expected but I couldn’t think of another way to do it.

to explain the formula, the ‘C19’ is the cell reference you want to rank (the first batting score), ‘battingscores’ refers to the range of cells (all of the batting scores) you want to rank C19 against – “compare this score with all these scores and tell me where it ranks”. the 1 is not necessary but makes the ranking in ascending order. Leaving it out will make the formula rank in descending order.
hope this helps
anno 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 02:33 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