excel - SUMPRODUCT 与列上的计算标准
问题描述
Excel表:
A B C D E F G H
1 Products Date Sales Criteria 1: Product_B Result: 200
2 Product_A 2020-04-15 500 Criteria 2: 2020-04-15
3 Product_B 2020-04-12 600
4 Product_B 2020-04-12 300
5 Product_B 2020-04-15 200
6 Product_B 2020-04-20 400
7 Product_C 2020-04-15 800
8 Product_C 2020-04-19 900
9 Product_C 2020-04-30 300
10
11
在上面的表格中我有不同products
的和他们的sales
在一定的date
。
在我根据和Cell G1
中的标准计算销售额的总和。Cell E1
E2
G1 = SUMPRODUCT((($A$2:$A$100=$E$1)*($B$2:$B$100=$E$2)*$C$2:$C$100))
所有这些都按应有的方式工作。
现在,我想更改date condition
公式中的Cell G1
:
如果在Column B
adate + 3 days
中与日期匹配,Cell E2
则应在总和中考虑Cell G1
.
的预期结果Cell G1
是900
。
我如何需要修改SUMPRODUCT
公式Cell G1
以使用计算的date + 3 days = E2
标准Column B
?
解决方案
= SUMPRODUCT((($A$2:$A$100=$E$1)*($B$2:$B$100=($E$2-3))*$C$2:$C$100))
推荐阅读
- python - InvalidArgumentError: indices[120,2] = -1 is not in [0, 10) in Keras
- c++ - 为 Zedboard Zynq-7000 编译应用程序
- java - BinarySearchTree (Java) 中的插入函数
- python - pygame 命令都不起作用;如,它说它们不存在
- c++ - CMake两个同名的源文件
- polymer - 在 Vaadin-grid 聚合物 2 中使用行详细信息时出现双行
- javascript - ANGULAR - 在创建的元素上设置与 Renderer2 和 setProperty() 的属性绑定
- button - 蜂鸣器不适用于我的 MicroPython 代码
- javascript - 将thead的列与tbody对齐
- mongodb - MongoDB 安装 WSL 2