Rank for different Criterion Groups

amkkhan

Board Regular
Joined
Dec 11, 2021
Messages
75
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Is it possible to get different set of rank for different criterion groups in the same column.
Actually I wish to get each exams rank to be compared with one of its own kind for each student.
For example rank of 1st-Term should be compared with results of 1st-Term of all students.
In the same way the rank of Mid-Term should be compared with results of Mid-Term of all students.
Same for rest of exams and

rank of Grand-Total should be compared with results of Grand-Total of all students.

And essentially the rank that a student is achieving after final term in "Grand Total" row.
My apologies XL2BB is not working at the moment. If you are coming with solution please also post XL2BB
 

Attachments

  • Rank.JPG
    Rank.JPG
    76 KB · Views: 12

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe...

K9 copied down
=COUNTIFS($G$9:$G$28,G9,$H$9:$H$28,">"&H9)+1

Hope this helps

M.
 
Upvote 0
Hi Amkkhan,

The merged cells add a wrinkle.

Amkkhan.xlsx
EFGHIJK
8Roll No.NameExamObt. MarksT Marks%ageRank
91Joe1st Term470500941
10Mid Term380500763
112nd Term410500822
12Final Term450500902
13Grand Total1710200085.51
142Nick1st Term320500643
15Mid Term290500584
162nd Term345500693
17Final Term495500991
18Grand Total1450200072.52
193Sunny1st Term400500802
20Mid Term490500981
212nd Term300500604
22Final Term100500204
23Grand Total1290200064.53
244James1st Term260500524
25Mid Term390500782
262nd Term480500961
27Final Term15650031.23
28Grand Total1286200064.34
Sheet1
Cell Formulas
RangeFormula
J9:J28J9=H9/I9*100
K9:K28K9=IF($F9="Grand Total",COUNTIFS($F$9:$F$9999,$F9,$J$9:$J$9999,">"&J9)+1,COUNTIFS($G$9:$G$9999,$G9,$H$9:$H$9999,">"&$H9)+1)
H28:I28,H23:I23,H18:I18,H13:I13H13=SUM(H9:H12)
E14,E24,E19E14=E9+1
 
Upvote 0
Thanks @Marcelo Branco but I am looking for Rank formula in Column K

I suggested a formula in K9 copied down, as requested

By the way, unmerge cells F:G on the rows that contain Grand Total. Type Grand Total only in column G

M.
 
Upvote 0
Try

Pasta1
FGHIJK
8NameExamObt MarksT. Marks% ageRank
9Joe1st Term47050094,0%1
102nd Term38050076,0%3
113rd Term41050082,0%2
12Final Term45050090,0%2
13Grand Total1710200085,5%1
14Nick1st Term32050064,0%3
152nd Term29050058,0%4
163rd Term34550069,0%3
17Final Term49550099,0%1
18Grand Total1450200072,5%2
19Sunny1st Term40050080,0%2
202nd Term49050098,0%1
213rd Term30050060,0%4
22Final Term10050020,0%4
23Grand Total1290200064,5%3
24James1st Term26050052,0%4
252nd Term39050078,0%2
263rd Term48050096,0%1
27Final Term15650031,2%3
28Grand Total1286200064,3%4
Plan3
Cell Formulas
RangeFormula
J9:J28J9=H9/I9
K9:K28K9=COUNTIFS($G$9:$G$28,G9,$H$9:$H$28,">"&H9)+1
H28:I28,H23:I23,H18:I18,H13:I13H13=SUM(H9:H12)


M.
 
Upvote 0
I suggested a formula in K9 copied down, as requested

By the way, unmerge cells F:G on the rows that contain Grand Total. Type Grand Total only in column G

M.
Thanks @Marcelo Branco
What is benefit of it. actually "Grand Total" is representing a difference between all above 4 exam terms
 
Upvote 0
What is benefit of it. actually

In your case, the benefit would be to use a simpler formula for all rows. You might notice that Toadstool had to use an IF condition to handle the merged cells. Unless cells are not used in any formula, as a general rule, avoid merged cells!

M.
 
Upvote 0
Every time I tried to get XL2BB for my sheet, my laptop got stuck because perhaps my Excel sheet contain too much content. I applied both the formulas of @Marcelo Branco and @Toadstool but it didn't worked. So I can only show you the real situation by this image.
I needed Ranks in Right most(very last Column).
 

Attachments

  • Rank Issue.JPG
    Rank Issue.JPG
    210.8 KB · Views: 10
Upvote 0

Forum statistics

Threads
1,215,151
Messages
6,123,321
Members
449,094
Latest member
Chestertim

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