Get the array of "students" having as maximum score of X

Solvap

New Member
Joined
Sep 17, 2015
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,

I hope you can help me on this one which I thought to be easy, but not anymore 🤯
I short, I have a list of students who are associated with scores (more than 1 and some can be equal). I'm looking for a way to get an array of the students (that I will concatanate with TEXTJOIN) that have as maximum score a value that I have specified in another cell.

Example:
StudentIDScore
A3
C1
B4
A2
C3
D5
A3
B2
A2
D1
C3
C1

List of students having a maximum score of : 3
Result: A, C

As you can see in the table, students A and C have a maximum score equal to 3.

So far, I've been able to do that by using an extra column showing that maximum score per StudentID but I'm looking for a solution without extra column.

Thank you in advance for your time.

Solvap
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Depending on your version of xl, maybe
++Fluff.xlsm
ABCD
1StudentIDScore
2A33
3C1A, C
4B4
5A2
6C3
7D5
8A3
9B2
10A2
11D1
12C3
13C1
Main
Cell Formulas
RangeFormula
D3D3=LET(u,UNIQUE(A2:A13),TEXTJOIN(", ",,IF(MAXIFS(B2:B13,A2:A13,u)=D2,u,"")))
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Depending on your version of xl, maybe
++Fluff.xlsm
ABCD
1StudentIDScore
2A33
3C1A, C
4B4
5A2
6C3
7D5
8A3
9B2
10A2
11D1
12C3
13C1
Main
Cell Formulas
RangeFormula
D3D3=LET(u,UNIQUE(A2:A13),TEXTJOIN(", ",,IF(MAXIFS(B2:B13,A2:A13,u)=D2,u,"")))
Hello @Fluff,

Thanks a lot for your reply, it works perfectly ! BTW, thank you also for the profile info, I've just updated it :)

Have a nice evening.
Solvap
 
Upvote 0
You're welcome & thanks for the feedback.
Thanks also for updating your profile. (y)
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,138
Members
452,381
Latest member
Nova88

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