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]


Student IDLast NameFirst NameCumulative GPA Term
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122145[/FONT]<strike></strike>
SmithJohn3.15
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122145[/FONT]<strike></strike>
SmithJohn2.94
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122145[/FONT]Smith<strike></strike>
John3.453
122651ReidJane3.74
122651ReidJane3.03
122156HayesBen4.06
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]122156[/FONT]
HayesBen3.525

<tbody>
</tbody>

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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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