With Excel365 you can use below formula.
=INDEX(SORT(FILTER($A$2:$C$6,$A$2:$A$6=A2),3,-1),1,2)
For non O365
user try below array formula.
=INDEX($B$2:$B$6,MATCH(MAX(IF($A$2:$A$6=A2,$C$2:$C$6,"")),$C$2:$C$6,0))
Press CTRL+SHIFT+ENTER to evaluate the formula as it is an array formula.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…