Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 使用跨列的附加条件来统计日期之间的产品_Excel_Excel Formula - Fatal编程技术网

Excel 使用跨列的附加条件来统计日期之间的产品

Excel 使用跨列的附加条件来统计日期之间的产品,excel,excel-formula,Excel,Excel Formula,我正在尝试组合一个sumproduct公式,它看起来介于两个日期之间,并且有一个跨列的标准 我有以下资料: 开始日期: Sheet1!A1 结束日期: Sheet1!A2 标准字段:Sheet1!A3 我想对第2页的列进行求和!B2:F200whereSheet2!A2:A200介于表1和表2上的开始日期和结束日期之间!B1:F1等于表1 我到了这里,但我不能跨列求和或在条件字段中添加 SUMPRODUCT(--(Sheet2!A2:A200>=Sheet1!A1),--(Sheet2!A

我正在尝试组合一个sumproduct公式,它看起来介于两个日期之间,并且有一个跨列的标准

我有以下资料:

开始日期:
Sheet1!A1

结束日期:
Sheet1!A2

标准字段:
Sheet1!A3

我想对第2页的列进行求和!B2:F200where
Sheet2!A2:A200
介于
表1
表2上的开始日期和结束日期之间!B1:F1
等于
表1

我到了这里,但我不能跨列求和或在条件字段中添加

SUMPRODUCT(--(Sheet2!A2:A200>=Sheet1!A1),--(Sheet2!A2:A200<=Sheet1!A2),Sheet2!C:C)

SUMPRODUCT(-Sheet2!A2:A200>=Sheet1!A1),-(Sheet2!A2:A200使用带索引的SUMIFS返回正确的列:

=SUMIFS(INDEX(Sheet2!$B:$F,0,MATCH(Sheet1!A3,Sheet2!$B1:$F$1,0)),Sheet2!$A:$A,">=" & Sheet1!A1,Sheet2!$A:$A,"<=" & Sheet1!A2)

=SUMIFS(索引(Sheet2!$B:$F,0,匹配(Sheet1!A3,Sheet2!$B1:$F$1,0)),Sheet2!$A:$A,“>=”&Sheet1!A1,Sheet2!$A:$A,“B1:F1中的列名是唯一的吗?是的,它们是唯一的。”