Assign each category points then sort total points from lowest to highest

15minoffame

Board Regular
Joined
Nov 26, 2014
Messages
55
I've searched Google but not able to find this answer because I don't think I entered the correct search verbiage. Does one need to have a complicated VBA in order for me to do what I want? I want to give points to each category where the player is ranked then ranked from lowest.

Example. Ty Cobb is ranked 1 in BA, 3rd in G, 3rd in AB, 2nd in Runs, ect. So you get 1 pt for BA, 3 pts for G & AB, 2 for Runs. Lets say Cobb gets 20 pts when you add up all the major offensive categories. How would you have a formula to add up all the points then sort them from lowest?

RkPlayerBAGABRH2B3BHRRBIBBSOSBOBPSLGOPS
1Ty Cobb0.36630341143422444189724295117194412496808970.4330.5120.945
2Rogers Hornsby0.3582259817315792930541169301158410386791350.4340.5771.01
3Tris Speaker0.34527891019518823514792222117153113813934360.4280.50.928
4Ted Williams0.34422927706179826545257152118392021709240.4820.6341.116
5Babe Ruth0.34225038399217428735061367142214206213301230.4740.691.164
6Harry Heilmann0.342214777871291266054215118315438565501130.410.520.93
7Bill Terry0.34117216428112021933731121541078537449560.3930.5060.899
8Lou Gehrig0.3402164800118882721534163493199515087901020.4470.6321.08
9George Sisler0.340205582671284281242516410211784723273750.3790.4680.847
10Tony Gwynn0.33824409288138331415438513511387904343190.3880.4590.847
11Nap Lajoie0.33619887498108325225101015011414572732930.3820.4510.833
12Al Simmons0.33422158759150729275391493071828615737880.380.5350.915
13Paul Waner0.3332549945916273152605191113130910913761040.4040.4730.878
14Eddie Collins0.333282699491821331543818747129914994677410.4240.4290.853
15Stan Musial0.3313026109721949363072517747519511599696780.4170.5590.976
16Heinie Manush0.330200876541288252449116011011835063451130.3770.4790.856
17Wade Boggs0.32824399180151330105786111810141412745240.4150.4430.858
18Rod Carew0.3282469931514243053445112921015101810283530.3930.4290.822
19Joe DiMaggio0.32517366821139022143891313611537790369300.3980.5790.977
20Jimmie Foxx0.3252317813417512646458125534192214521311870.4280.6091.038

<tbody>
</tbody>

<tbody>
</tbody>

Thanks for any help & suggestions.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I have assumed your data starts at A1. You will need to add some extra columns. For each offensive category (sorry I'm from UK so don't understand the abbbreviations) create a column with this formula in row 2 (replace C with the column number of the category): =RANK(C2,C$2:C$21) and copy down all rows. Then create 1 further column with this formula (where R and W are the start and end columns of your rank columns): =SUM(R2:W2) and copy down all rows. Finally, add 1 more column with this formula (assumes X is the column of sums): =RANK(X2,X$2:X$21,1). You can then sort the whole table on this column. I did it this way so you can see the steps involved - just hide the intermediate columns if you don't want to see them.
 
Last edited:
Upvote 0
Hi,
This is what I'm looking for! Thank you so much for your help! :)

I have assumed your data starts at A1. You will need to add some extra columns. For each offensive category (sorry I'm from UK so don't understand the abbbreviations) create a column with this formula in row 2 (replace C with the column number of the category): =RANK(C2,C$2:C$21) and copy down all rows. Then create 1 further column with this formula (where R and W are the start and end columns of your rank columns): =SUM(R2:W2) and copy down all rows. Finally, add 1 more column with this formula (assumes X is the column of sums): =RANK(X2,X$2:X$21,1). You can then sort the whole table on this column. I did it this way so you can see the steps involved - just hide the intermediate columns if you don't want to see them.
 
Upvote 0
I've ran into ties issue. How would you show both 3.21 as 14 but keep 3.24 as 16? This is the formula I have right now: =RANK(AE2,AE$2:AE$78,1).

AB/HH Rank
2.801
2.852
2.943
3.044
3.055
3.056
3.077
3.128
3.149
3.1510
3.1611
3.1812
3.1913
3.2114
3.2115
3.2416
3.2517
3.3118
3.3119
3.3320

<colgroup><col width="64" style="width:48pt"> <col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>

Thanks again!
 
Upvote 0
Hi there

The way rank works will give the same rank to identical values (in this case 3.21), however I think the actual rankings are slightly different which is why they show as different ranks. Try formatting the AB/H column to have all decimals shown and you shoud see a difference. If you actually want to work to 2 decimal places only, you can use the round function on the values in the AB/H column to get the result you want.
 
Upvote 0

Forum statistics

Threads
1,215,741
Messages
6,126,587
Members
449,319
Latest member
iaincmac

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