Rank based on Multiple Column Criteria

ravi2628

Board Regular
Joined
Dec 20, 2017
Messages
221
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Everyone good Morning, Afternoon, Evening, Night

I was working on some data to find the rank based on multiple column criteria, can any one please help me out with the formula.

following data is as follows.

Input
SectionStudent NameScore
A1BJNNU
245​
A1DBVDB
234​
A1HKULJ
116​
A1HYFBN
211​
A1JGJO
160​
A1NNVBJDF
230​
A1XXCX
262​
A1ZVBSKJD
245​
A2ABEHR
325​
A2ASBA
265​
A2DFHBWEN
420​
A2DFN
180​
A2DN
311​
A2HWEQH
124​
A2SBDND
464​
A2SBHRN
452​
A2SDNHW
382​
A2WBHEHW
195​

Output
SectionStudent NameScoreRank
A1BJNNU
245​
2​
A1DBVDB
234​
4​
A1HKULJ
116​
8​
A1HYFBN
211​
6​
A1JGJO
160​
7​
A1NNVBJDF
230​
5​
A1XXCX
262​
1​
A1ZVBSKJD
245​
3​
A2ABEHR
325​
5​
A2ASBA
265​
7​
A2DFHBWEN
420​
3​
A2DFN
180​
9​
A2DN
311​
6​
A2HWEQH
124​
10​
A2SBDND
464​
1​
A2SBHRN
452​
2​
A2SDNHW
382​
4​
A2WBHEHW
195​
8​

Please help me out with the formula

Thanks & Regards
Ravi
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi Ravi, see if it works:
Book1
ABCD
1SectionStudent NameScoreRank
2A1BJNNU2452
3A1DBVDB2344
4A1HKULJ1168
5A1HYFBN2116
6A1JGJO1607
7A1NNVBJDF2305
8A1XXCX2621
9A1ZVBSKJD2453
10A2ABEHR3255
11A2ASBA2657
12A2DFHBWEN4203
13A2DFN1809
14A2DN3116
15A2HWEQH12410
16A2SBDND4641
17A2SBHRN4522
18A2SDNHW3824
19A2WBHEHW1958
Sheet1
Cell Formulas
RangeFormula
D2:D19D2=COUNTIFS($A$2:$A$19,A2,$C$2:$C$19,">="&C2)-COUNTIFS($A3:$A$20,A2,$C3:$C$20,C2)
 
Upvote 0
Hi Ravi, see if it works:
Book1
ABCD
1SectionStudent NameScoreRank
2A1BJNNU2452
3A1DBVDB2344
4A1HKULJ1168
5A1HYFBN2116
6A1JGJO1607
7A1NNVBJDF2305
8A1XXCX2621
9A1ZVBSKJD2453
10A2ABEHR3255
11A2ASBA2657
12A2DFHBWEN4203
13A2DFN1809
14A2DN3116
15A2HWEQH12410
16A2SBDND4641
17A2SBHRN4522
18A2SDNHW3824
19A2WBHEHW1958
Sheet1
Cell Formulas
RangeFormula
D2:D19D2=COUNTIFS($A$2:$A$19,A2,$C$2:$C$19,">="&C2)-COUNTIFS($A3:$A$20,A2,$C3:$C$20,C2)
Thank for the logic, but if i select entire column rank is starting from "0" so i have added "+1" to the condition.

Thank you,
Ravi
 
Upvote 0
I think you may get an issue with tied scores?

Maybe just

MRXLMAY21.xlsm
ABCD
1SectionStudent NameScoreRANK
2A1BJNNU2452
3A1DBVDB2344
4A1HKULJ1168
5A1HYFBN2116
6A1JGJO1607
7A1NNVBJDF2305
8A1XXCX2621
9A1ZVBSKJD2452
10A2ABEHR3255
11A2ASBA2657
12A2DFHBWEN4203
13A2DFN1809
14A2DN3116
15A2HWEQH12410
16A2SBDND4641
17A2SBHRN4522
18A2SDNHW3824
19A2WBHEHW1958
Result
Cell Formulas
RangeFormula
D2:D19D2=COUNTIFS($A$2:$A$19,A2,$C$2:$C$19,">"&C2)+1
 
Last edited:
Upvote 0
Solution
I think you may get an issue with tied scores?

Maybe just

MRXLMAY21.xlsm
ABCD
1SectionStudent NameScoreRANK
2A1BJNNU2452
3A1DBVDB2344
4A1HKULJ1168
5A1HYFBN2116
6A1JGJO1607
7A1NNVBJDF2305
8A1XXCX2621
9A1ZVBSKJD2452
10A2ABEHR3255
11A2ASBA2657
12A2DFHBWEN4203
13A2DFN1809
14A2DN3116
15A2HWEQH12410
16A2SBDND4641
17A2SBHRN4522
18A2SDNHW3824
19A2WBHEHW1958
Result
Cell Formulas
RangeFormula
D2:D19D2=COUNTIFS($A$2:$A$19,A2,$C$2:$C$19,">"&C2)+1
I have added the +1 to this formula

COUNTIFS($A$2:$A$19,A2,$C$2:$C$19,">="&C2)-COUNTIFS($A3:$A$20,A2,$C3:$C$20,C2)+1
 
Upvote 0

Forum statistics

Threads
1,215,695
Messages
6,126,261
Members
449,307
Latest member
Andile

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