我想要在EXCEL里某列中等于某个数值的后面两列的乘积

2024-11-30 08:05:42
推荐回答(2个)
回答1:

=SUMPRODUCT((A1:A8=1)*B1:B8*C1:C8)
=SUMPRODUCT((A1:A8=2)*B1:B8*C1:C8)
就可以了。

回答2:

=sumproduct((a1:a100=1)*(b1:b100)*(c1:c100))

=sumproduct((a1:a100=2)*(b1:b100)*(c1:c100))