Ranking on a Criterion Within a Second Criterion

chasfh

Board Regular
Joined
Dec 10, 2014
Messages
64
Office Version
  1. 365
Platform
  1. Windows
I've been searching everywhere for this answer, including on MrExcel, and I am not finding what I am looking for.

This is a simple case of wanting to rank baseball players by one column (Rating) based on their field position within each organization. I do not want to exclude duplicates, which seems to be the problem most answers are trying to solve in examples I have seen. I just want to be able to rank based on the multiple criteria. It's OK if there are ties that result in different "ranks"—in fact, that's preferable for my purposes.

I have included an Excel range through XL2BB below, which includes all players for all positions within two sample organizations. I have already pre-ranked them in the way I want them to make it easier for you to see whether your formula works, but the resulting numbers also have to follow the players properly whenever we re-sort the table.

Suppose I want to see the top three players by position for each organization. The correct formula will rank Tresh, Elberfeld, and Desmond as 1-2-3 among shortstops (SS) in organization 1; Paddack, Hughes, and Kile as 1-2-3 among starting pitchers (SP) in org 1; Rodriguez, Drill, and Shaw as 1-2-3 among catchers (C) in org 2; and so on. You get my drift. That's how you will know you got the formula right, for my purposes.

I appreciate your help in trying to solve this. Thank you.

RatingPlayerOrgPositionRank
59Tresh, Tom1SS
54Elberfeld, Kid1SS
51Desmond, Ian1SS
38Riddle, JT1SS
36Smalley Jr., Roy1SS
33Lochhead, Harry1SS
30Kazanski, Ted1SS
58Paddack, Chris1SP
56Hughes, Phil1SP
56Kile, Darryl1SP
53Reynolds, Allie1SP
48Keller, Mitch1SP
45Cabrera, Daniel1SP
44Moret, Roger1SP
41Madden, Kid1SP
39Wood, Mike1SP
39Bautista, Jose1SP
39Nichols, Tricky1SP
38Hernandez, Livan1SP
31Jarvis, Kevin1SP
57Betances, Dellin1RP
51Holder, Jonathan1RP
48Herrera, Kelvin1RP
47Aase, Don1RP
43Brame, Erv1RP
40Castro, Miguel1RP
40Perry, Ryan1RP
39Wilson, Justin1RP
37Stimmel, Archie1RP
33Alvarado, Jose1RP
69Judge, Aaron1RF
33Swoboda, Ron1RF
51Sierra, Ruben1LF
49Kelly, Roberto1LF
36Lough, David1LF
35Arcia, Oswaldo1LF
54De Flatus, Justin1CL
37Reichert, Dan1CL
62Mantle, Mickey1CF
43Grisham, Trent1CF
48d'Arnaud, Travis1C
47Kennedy, Terry1C
25Ritter, Lew1C
57Arenado, Nolan13B
45Middlebrooks, Will13B
44Camargo, Johan13B
62Dugan, Joe12B
50Randle, Lenny12B
48Biggio, Craig12B
42Perez, Tomas12B
39Ripken, Billy12B
37Newman, Al12B
34Stillwell, Kurt12B
29Johnson, Tim12B
80Gehrig, Lou11B
64Pipp, Wally11B
42Healy, Ryon11B
37Goldsberry, Gordon11B
35Traber, Jim11B
35Tebeau, Patsy11B
50Ramirez, Alexei2SS
39Thevenow, Tommy2SS
34Rhyne, Hal2SS
23Norman, Nelson2SS
70Potter, Nels2SP
68deGrom, Jacob2SP
59Cooper, Wilbur2SP
58Shore, Ernie2SP
55Breining, Fred2SP
49Nottebart, Don2SP
44Culp, Ray2SP
40Duchscherer, Justin2SP
35Stone, Steve2SP
34Haynes, Jimmy2SP
33Thomas, Myles2SP
32Albury, Vic2SP
29Niekro, Joe2SP
28Leonhard, Dave2SP
57Harvey, Bryan2RP
50Jones, Nate2RP
49Lanning, Johnny2RP
48Ross, Robbie2RP
46Lancaster, Les2RP
45Constable, Jim2RP
45Kolb, Danny2RP
41Bolton, Tom2RP
40Muffett, Billy2RP
31Dickman, Emerson2RP
31Ortiz, Ramon2RP
20Lewis, Jim2RP
80Flagstead, Ira2RF
52Jensen, Jackie2RF
48Unglaub, Bob2RF
56Diaz, Matt2LF
49Goodman, Billy2LF
50Metkovich, George2CF
46Berry, Ken2CF
45Nichols, Reid2CF
41Bradley, Jackie2CF
39Engel, Adam2CF
59Rodriguez, Ellie2C
49Drill, Lew2C
48Shaw, Al2C
40Stephens, Jim2C
38Daley, Pete2C
35Mirabelli, Doug2C
31Kravitz, Danny2C
28Parent, Mark2C
80McGraw, John23B
48Gilbert, Pete23B
43Candelario, Jeimer23B
69Doerr, Bobby22B
56Engle, Clyde22B
43Yerkes, Steve22B
39Holly, Ed22B
36Schilling, Chuck22B
35Goliat, Mike22B
29Young, Bobby22B
52Gurriel, Yulieski21B
45Zauchin, Norm21B
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about
Excel Formula:
=COUNTIFS(D:D,D2,C:C,C2,A:A,">"&A2)+1
 
Upvote 0
Solution
How about
Excel Formula:
=COUNTIFS(D:D,D2,C:C,C2,A:A,">"&A2)+1
Awesome, it totally worked! I haven't figured out how yet, but it totally does! Thanks!

By the way, this is how it looks in my table:

=COUNTIFS([Position2],[@Position2],[Org],[@Org],[oa],">"&[@oa])+1
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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