【发布时间】:2026-01-08 07:30:01
【问题描述】:
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
在上表中,我在某个date 上有不同的products 和它们的sales。
在Cell G1 中,我根据Cell E1 和E2 中的标准计算销售额的总和。
G1 = SUMPRODUCT((($A$2:$A$100=$E$1)*($B$2:$B$100=$E$2)*$C$2:$C$100))
所有这些都按原样工作。
现在,我想更改Cell G1中公式中的date condition:
如果Column B 中的date + 3 days 与Cell E2 中的日期匹配,则应在Cell G1 的总和中考虑。
Cell G1 中的预期结果将是 900。
我需要如何修改Cell G1 中的SUMPRODUCT 公式以使用计算标准date + 3 days = E2 而不是Column B?
【问题讨论】:
标签: excel excel-formula