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
一个date + 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))
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句