小姑娘的红舞鞋漂亮,我也给你出点主意,如果我没理解错你的要求。Emperor 的方法不错,你自己选。
Name Class Amount
Apple A 4
Apple B 5
Pear A 7
Orange A 8
Orange B 9
Apple B 11
Pear B 12
Statistics:
Name Class Subtotal
Apple A =SUMIFS($2:$8, $2:$8, A11, $2:$8, B11)
B =SUMIFS($2:$8, $2:$8, A11, $2:$8, B12)
Pear A =SUMIFS($2:$8, $2:$8, A13, $2:$8, B13)
B =SUMIFS($2:$8, $2:$8, A13, $2:$8, B14)
Orange A =SUMIFS($2:$8, $2:$8, A15, $2:$8, B15)
B =SUMIFS($2:$8, $2:$8, A15, $2:$8, B16)
Statistics:
Name Class Subtotal
Apple A 4
B 16
Pear A 7
B 12
Orange A 8
B 9
(The format sucks after posting, you should be able to figure them out.)