Targeting top result for each entry

reporting_95

New Member
Joined
May 7, 2019
Messages
30
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Hi,[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]I have a workbook that lists all terms attended for each student as well as their GPA for that term in descending order. What I am trying to achieve is target the top entry for each student, which will give me the last term attended as well as their last known GPA. Please see a short example of a much larger list below. [/FONT]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Student ID[/TD]
[TD]Last Name[/TD]
[TD]First Name[/TD]
[TD]Cumulative GPA [/TD]
[TD]Term[/TD]
[/TR]
[TR]
[TD][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122145[/FONT]<strike></strike>
[/TD]
[TD]Smith[/TD]
[TD]John[/TD]
[TD]3.1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122145[/FONT]<strike></strike>
[/TD]
[TD]Smith[/TD]
[TD]John[/TD]
[TD]2.9[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122145[/FONT][/TD]
[TD]Smith<strike></strike>
[/TD]
[TD]John[/TD]
[TD]3.45[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]122651[/TD]
[TD]Reid[/TD]
[TD]Jane[/TD]
[TD]3.7[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]122651[/TD]
[TD]Reid[/TD]
[TD]Jane[/TD]
[TD]3.0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]122156[/TD]
[TD]Hayes[/TD]
[TD]Ben[/TD]
[TD]4.0[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122156[/FONT]
[/TD]
[TD]Hayes[/TD]
[TD]Ben[/TD]
[TD]3.52[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]

As you can see from the example, the last term attended is always the first entry for each student. I would need Term 5 for John, Term 4 for Jane, and Term 6 for Ben. This would give me their last term attended, and cumulative GPA. I tried filtering out by specific term but that would throw off the numbers because each student's last term attended is different.
Is there a way I can target the top entry for each student? Please kindly advise.
Thanks!!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You could add a helper column which flags the uppermost entry per student. Then filter on that:


Book1
ABCDEF
1Student IDLast NameFirst NameCumulative GPATermFilter
2122145SmithJohn3.15TRUE
3122145SmithJohn2.94FALSE
4122145SmithJohn3.453FALSE
5122651ReidJane3.74TRUE
6122651ReidJane33FALSE
7122156HayesBen46TRUE
8122156HayesBen3.525FALSE
Sheet3
Cell Formulas
RangeFormula
F2=COUNTIFS($B$2:$B2,B2,$C$2:$C2,C2)=1
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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