A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
In O2:
=LET(d, MAXIFS(SIO!$E$3:$E$3219, SIO!$H$3:$H$3219, A2:A321), IF(d=0, "", d))
In P2:
=IF(O2#="", "", XLOOKUP(A2:A321&O2#, SIO!$H$3:$H$3219&SIO!$E$3:$E$3219, SIO!$G$3:$G$3219, ""))