(各版本恉可)A1:
=SUM(IF(B3:B23=B1,A3:A23,""))
2019以前版本要按CTRL+SHIFT+ENTER鍵,2019(含)以後版本按ENTER鍵。
(各版本恉可)A1:
=LOOKUP(B1,B3:B23,A3:A23)
=VLOOKUP(B1,IF({1,0},B3:B23,A3:A23),2,0)
=INDEX(A3:A23,MATCH(B1,B3:B23,0),0)
(2021及365版本)A1:
=FILTER(A3:A23,B3:B23=B1)
=XLOOKUP(B1,B3:B23,A3:A23)