Here is one way
See attached worksheet with desired results returned
Create a helper column D in sheet "Sample" (MAX formula much simpler with name of student available on each row)
fornula in cell D2 copied down
in Sheet "Desired Result"
formula in cell D2 copied down
this is an
array formula and must be confirmed
{CTRL}{SHIFT}{ENTER}
and will look like this in the cell
{=MAX(IF(Sample!D:D=A2,Sample!C:C))}
you cannot enter the { } brackets manually - it will not work
MAXIFS
Function MAXIFS avoids the need for an array formula, but is not available in all versions of Excel
Try this formula (in sheet "Desired Result") in cell E2 copy down
It returns same as column D
Bookmarks