Excel Ranking Formula with Unique Records

amkkhan

Board Regular
Joined
Dec 11, 2021
Messages
75
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I want top 3 Unique students ranking filtered from records below along with their details
and all the other roll numbers excluding the ones that are once already mentioned once in the left
Only that appeared on top 3 in the last column (with Comma separation)


Class Data - Copy.xlsm
D
1125
1st
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A8:I20,J11:N20Cellcontains a blank value textNO
D11:D20,F11:F20,H11:H20Cell Value<10textNO
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
The xl2bb you shared only has one cell. I'm assuming you meant to share more?
 
Upvote 0
The xl2bb you shared only has one cell. I'm assuming you meant to share more?
Yup... You are right

Class Data - Copy.xlsm
ABCDEFGHIJKLMNOPQRS
1POSITION HOLDERS :
2
3Sr.NoPositionRoll. No :Name :T. MarksObtained%ageOther Position Holders
411st1Abdullah Malik7575100.001 , 4 , 7
522nd1Abdullah Malik7575100.002 , 5 , 8
633rd1Abdullah Malik7575100.003 , 6 , 9
7
8Roll. No :Adm. No :Name :T.NameT.NameT.NameT. MarksTotalMerit
9Sub-1Sub-2Sub-3Marks
10MarksGradeMarksGradeMarksGradeMarks%ageGrade
1111529Abdullah Malik25A+25A+25A+7575100.00A+1st
1221565Mohsin Hayat24D24D24D757296.00D2nd
1331602Hafeez Ullah23D23D23F756992.00F3rd
1441656Ahsan Khan25D25D25F7575100.00F1st
1551660Asif2424D24757296.00F2nd
1661663Alyan Abbas2323D23A+756992.00D3rd
1771680Syed Shujaat25F25D25F7575100.00F1st
1881681M. Haseeb24A+24A+24A+757296.00A+2nd
1991684M. Anns23A+23A+23A+756992.00A+3rd
20101686Ahmad Hassan22A+22A+22A+756688.00A+4th
1st
Cell Formulas
RangeFormula
C3C3=IF('D:\FG School\Result Software\Finalization\Result Compilation - New Changes\[Classes Prep.xlsm]Award List'!A4="","",'D:\FG School\Result Software\Finalization\Result Compilation - New Changes\[Classes Prep.xlsm]Award List'!A4)
E3E3='D:\FG School\Result Software\Finalization\Result Compilation - New Changes\[Classes Prep.xlsm]Award List'!C4
I3I3=IF('D:\FG School\Result Software\Finalization\Result Compilation - New Changes\[Classes Prep.xlsm]Award List'!E2="","",'D:\FG School\Result Software\Finalization\Result Compilation - New Changes\[Classes Prep.xlsm]Award List'!E2)
M3M3=IF('D:\FG School\Result Software\Finalization\Result Compilation - New Changes\[Classes Prep.xlsm]Award List'!E4="","",'D:\FG School\Result Software\Finalization\Result Compilation - New Changes\[Classes Prep.xlsm]Award List'!E4)
C4C4=INDEX($A$11:$A$20,MATCH(SMALL(N11:N20,1),N11:N20,0),0)
E4E4=INDEX($C$11:$C$20,MATCH(SMALL(N11:N20,1),N11:N20,0),0)
C5C5=INDEX($A$11:$A$20,MATCH(SMALL(N11:N20,2),N11:N20,0),0)
E5E5=INDEX($C$11:$C$20,MATCH(SMALL(N11:N20,2),N11:N20,0),0)
C6C6=INDEX($A$11:$A$20,MATCH(SMALL(N11:N20,3),N11:N20,0),0)
E6E6=INDEX($C$11:$C$20,MATCH(SMALL(N11:N20,3),N11:N20,0),0)
K4K4=INDEX($K$11:$K$20,MATCH(SMALL(N11:N20,1),N11:N20,0),0)
M4:M6M4=IF(I4="","",(K4/I4)*100)
O4:O6O4=TEXTJOIN(" , ",TRUE,IF(A4=$N$11:$N$20,$A$11:$A$20,""))
K5K5=INDEX($K$11:$K$20,MATCH(SMALL(N11:N20,2),N11:N20,0),0)
K6K6=INDEX($K$11:$K$20,MATCH(SMALL(N11:N20,3),N11:N20,0),0)
K11:K20K11=SUM(D11,F11,H11)
L11:L20L11=K11/J11*100
N11:N20N11=IF(K11="","",SUMPRODUCT((K11<=$K$11:$K$20)/COUNTIF($K$11:$K$20,$K$11:$K$20)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O4:O6Cellcontains a blank value textNO
O4:O6Cellcontains a blank value textNO
O3Cellcontains a blank value textNO
A3:N6Cellcontains a blank value textNO
C4:E6,I4:N6Cellcontains a blank value textNO
K10:M10Cellcontains a blank value textNO
A8:I20,J11:N20Cellcontains a blank value textNO
D11:D20,F11:F20,H11:H20Cell Value<10textNO
N8,K8:K9,J8:J10Cellcontains a blank value textNO
N11:N20Cell ValueduplicatestextNO
N11:N20Expression=AND(N11>=44,N11<=50)textNO
N11:N20Expression=AND(N11>=34,N11<=40)textNO
N11:N20Expression=AND(N11>=24,N11<=30)textNO
N11:N20Expression=AND(N11>=4,N11<=20)textNO
N11:N20Expression=N11=43textNO
N11:N20Expression=N11=42textNO
N11:N20Expression=N11=41textNO
N11:N20Expression=N11=33textNO
N11:N20Expression=N11=32textNO
N11:N20Expression=N11=31textNO
N11:N20Expression=N11=23textNO
N11:N20Expression=N11=22textNO
N11:N20Expression=N11=21textNO
N11:N20Expression=N11=3textNO
N11:N20Expression=N11=2textNO
N11:N20Expression=N11=1textNO
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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