(1)B16 公式
=COUNT(1/FREQUENCY(ROW($1:$9),MATCH($C$4:$C$11,$C$4:$C$11,)*($A$4:$A$11=A16)))-1
(2) C16公式
=COUNT(1/FREQUENCY(ROW($1:$9),MATCH($C$4:$C$11,$C$4:$C$11,)*($B$4:$B$11=\”A\”)*($A$4:$A$11=A16)))-1
(3)D16公式
=COUNT(1/FREQUENCY(ROW($1:$9),MATCH($C$4:$C$11,$C$4:$C$11,)*($B$4:$B$11=\”B\”)*($A$4:$A$11=A16)))-1