我有这张桌子
price product
25 apple
10 bananas
15 apple
30 oranges
45 oranges
5 bananas
In cell A10==SUM(IF((B2:B7="apple"),A2:A7,0)) <--- this does not work #VALUE! error
but this works A9==SUMIF(B2:B7,"=apple",A2:A7) <--- works
我究竟做错了什么。根据Microsoft 网站,语法似乎是正确的
=SUM(IF((A2:A9="A")+(A2:A9="B"),B2:B9,0))
我需要嵌套 if 工作,因为我有多个求和标准。