如果其他两列的差异小于 0,则对列中的值求和

Sum values in column if the difference of two other columns is smaller than 0

  |      A      |      B     |        C        |          D           |     E       |
--|-------------|------------|-----------------|----------------------|-------------|-
1 |  Product    | sales_plan |  sales_actuals  |  purchase_quantity   |             |
2 |  Product_A  |     500    |       400       |         1200         |             |
3 |  Product_B  |     800    |       900       |         3000         |    10000    |
4 |  Product_C  |     300    |       490       |         2000         |             |
5 |  Product_D  |     900    |       820       |         7000         |             |
6 |  Product_E  |     200    |       250       |         5000         |             |
7 |  Product_F  |     700    |       600       |         4000         |             |

Cell E3中我想总结purchase_quantityColumn D中如果sales_actuals > sales_plan

我知道我可以通过插入一个辅助列然后在这个辅助列上求和来做到这一点。
但是,我更喜欢没有此帮助列的解决方案。 像这样

=SUMPRODUCT(SUMIFS(C:C;C:C-B:B;"<0"))

你知道怎么解决吗?

正如您在评论中看到的那样,JvdV 的回答是有效的:

=SUMPRODUCT((C2:C7>B2:B7)*D2:D7)