B3公式右拉至L3:
=IF($M1=$A1,B1,IF((4>COLUMN(A1))*($M1=$A2),B2,""))
或者用这公式也行:
=IF($M1=$A1,B1,IF((5>COLUMN())*($M1=$A2),B2,""))