Nth largest values with criteria

Tashat

Board Regular
Joined
Jan 12, 2005
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hi everyone

I have a table of data and scores. I want to have another table which returns the top three highest scores and the names of the people with the highest score. I am almost there with it, but I want to return the top three scores for people who are labelled as CEM (column B) and the top three scores for people labelled as CA (Column B). I haven't been able to manage that last part. I also want my formula to be able to manage tied scores. e.g. Janice and Richard have both scored 7, but my formula repeats Janice's name and I want it to show Janice and Richard as 2nd and 3rd. I'm using Excel 365 and I'd appreciate anyone's help. Thank you.

Xlookup mr excel.xlsx
ABCDEFGH
1NameTypeScoreCEM
2AmyCEM11Charlotte
3GeoffCA52Janice
4DaveCA23Janice
5AlCEM2
6SarahCEM3
7CharlotteCEM8CA
8NatashaCEM51
9JaniceCA72
10MartinCEM53
11RachelCA1
12LouisaCA5
13SandraCEM4
14DanielleCEM4
15RichardCEM7
16
Sheet1
Cell Formulas
RangeFormula
G2:G4G2=INDEX(Names,MATCH(LARGE(Score,F2),Score,0))
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$2:$C$15G2:G4
Names=Sheet1!$A$2:$A$15G2:G4
Score=Sheet1!$C$2:$C$15G2:G4
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about
+Fluff v2.xlsm
ABCDEFG
1NameTypeScoreCEM
2AmyCEM11Charlotte
3GeoffCA52Richard
4DaveCA23Natasha
5AlCEM2
6SarahCEM3
7CharlotteCEM8CA
8NatashaCEM51Janice
9JaniceCA72Geoff
10MartinCEM53Louisa
11RachelCA1
12LouisaCA5
13SandraCEM4
14DanielleCEM4
15RichardCEM7
16
Master
Cell Formulas
RangeFormula
G2:G4G2=INDEX(SORTBY(FILTER(A2:A15,B2:B15=G1),FILTER(C2:C15,B2:B15=G1),-1),SEQUENCE(3))
G8:G10G8=INDEX(SORTBY(FILTER(A2:A15,B2:B15=G7),FILTER(C2:C15,B2:B15=G7),-1),SEQUENCE(3))
Dynamic array formulas.
 
Upvote 0
How about
+Fluff v2.xlsm
ABCDEFG
1NameTypeScoreCEM
2AmyCEM11Charlotte
3GeoffCA52Richard
4DaveCA23Natasha
5AlCEM2
6SarahCEM3
7CharlotteCEM8CA
8NatashaCEM51Janice
9JaniceCA72Geoff
10MartinCEM53Louisa
11RachelCA1
12LouisaCA5
13SandraCEM4
14DanielleCEM4
15RichardCEM7
16
Master
Cell Formulas
RangeFormula
G2:G4G2=INDEX(SORTBY(FILTER(A2:A15,B2:B15=G1),FILTER(C2:C15,B2:B15=G1),-1),SEQUENCE(3))
G8:G10G8=INDEX(SORTBY(FILTER(A2:A15,B2:B15=G7),FILTER(C2:C15,B2:B15=G7),-1),SEQUENCE(3))
Dynamic array formulas.
That's perfect as always! Thank you so much. You're an Excel genius Fluff :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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