Rank help (without skipping numbers and skipping blanks)

adurham22926192

New Member
Joined
Dec 17, 2019
Messages
49
Office Version
  1. 2019
Platform
  1. Windows
I need a formula to rank without skipping numbers. This is for a dance scoring software. In column C, I need to rank column B without skipping numbers so if say for example there is a 2 way tie for 4th (Rank: 4) it won’t go to 6 on the next rank it will go to 5. Also, i need the formula to skip the blank cells. Please help.

ABC
1Competitor NumberScoreRank
22770
31380
44176
5
61474
73160
8
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try:

Book1 (version 1).xlsb
ABC
1Competitor NumberScoreRank
227702
313804
441743
5 
614743
731601
8
Sheet14
Cell Formulas
RangeFormula
C2:C7C2=IF(B2="","",SUMPRODUCT(($B$2:$B$10<>"")*($B$2:$B$10<B2)*(MATCH($B$2:$B$10&"",$B$2:$B$10&"",0)=ROW($B$2:$B$10)-ROW($B$2)+1))+1)
 
Upvote 0
I just realized that I have it so that low scores rank higher. If it's the other way around, change the <B2 to >B2 about halfway through the formula.
 
Upvote 0
Thank
Try:

Book1 (version 1).xlsb
ABC
1Competitor NumberScoreRank
227702
313804
441743
5 
614743
731601
8
Sheet14
Cell Formulas
RangeFormula
C2:C7C2=IF(B2="","",SUMPRODUCT(($B$2:$B$10<>"")*($B$2:$B$10<B2)*(MATCH($B$2:$B$10&"",$B$2:$B$10&"",0)=ROW($B$2:$B$10)-ROW($B$2)+1))+1)
Thank you but I want to rank it in descending order so like score 80 would have the rank of 1 not score 60
 
Upvote 0
I noticed that just a few minutes ago (post 3). Change the formula to:

=IF(B2="","",SUMPRODUCT(($B$2:$B$10<>"")*($B$2:$B$10>B2)*(MATCH($B$2:$B$10&"",$B$2:$B$10&"",0)=ROW($B$2:$B$10)-ROW($B$2)+1))+1)
 
Upvote 0
Okay so I need more help. I’ve realised that I need to rank it with two columns as the range. I will show below

ABCDEF
1Competitor NumberScoreRankCompetitor NumberScoreRank
227701260
31380
441763860
51260
61474
73160

So in Cell C2 I want a rank formula to rank B2 value compared to the range B2:B7 and E2:E7.
 
Upvote 0
Much trickier with 2 disjoint ranges:

Book1 (version 1).xlsb
ABCDEFG
11Competitor NumberScoreRankCompetitor NumberScoreRank
222770512606
3313801 
444176238753
55 12606
6614744 
7731606 
Sheet18
Cell Formulas
RangeFormula
D2:D7,G2:G7D2=IF(C2="","",SUMPRODUCT(--(C2<(IF(COUNTIF($C$2:$C$7,ROW(INDIRECT("1:101"))-1)+COUNTIF($F$2:$F$7,ROW(INDIRECT("1:101"))-1),ROW(INDIRECT("1:101"))-1,-1))))+1)
Press CTRL+SHIFT+ENTER to enter array formulas.



Also keep in mind that this formula will only work on integer scores from 0 to 100.
 
Last edited:
Upvote 0
Much trickier with 2 disjoint ranges:

Book1 (version 1).xlsb
ABCDEFG
11Competitor NumberScoreRankCompetitor NumberScoreRank
222770512606
3313801 
444176238753
55 12606
6614744 
7731606 
Sheet18
Cell Formulas
RangeFormula
D2:D7,G2:G7D2=IF(C2="","",SUMPRODUCT(--(C2<(IF(COUNTIF($C$2:$C$7,ROW(INDIRECT("1:101"))-1)+COUNTIF($F$2:$F$7,ROW(INDIRECT("1:101"))-1),ROW(INDIRECT("1:101"))-1,-1))))+1)
Press CTRL+SHIFT+ENTER to enter array formulas.



Also keep in mind that this formula will only work on integer scores from 0 to 100.
Thank you so much. Does this work with decimals, say someone had a score of 86.5 would it still work?
 
Upvote 0
I think the easiest way is to create a list of Unique Scores. You can achieve this copying all the scores to an empty column and using Data > Remove Duplicates (see the gray area)

Then the formulas to get the rankings would be much simpler.

Pasta1
ABCDEFGH
1Competitor NumberScoreRankCompetitor NumberScoreRankUnique Scores
2277041260570
313802 80
4417433870474
5 1286,51
61486,51 86,5
731605 60
8
Plan2
Cell Formulas
RangeFormula
C2:C7C2=IF(B2="","",COUNTIFS(H$2:H$7,">"&B2)+1)
F2:F7F2=IF(E2="","",COUNTIFS(H$2:H$7,">"&E2)+1)


M.
 
Upvote 0

Forum statistics

Threads
1,224,802
Messages
6,181,053
Members
453,014
Latest member
Chris258

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