首页 > 解决方案 > 如果特定日期在特定期间且文本值相同,则 Excel 值总和

问题描述

我有两个表:Table11 和 Table1510 在 Table11 中我有三列:日期、数值和文本值 在 Table1510 中我有 4 列:开始日期、结束日期、文本值和空列

现在我的公式需要做的是: Table[1510] empty column =

如果 Table11[date] = Table1510[Startdate] + Table1510[enddate] 之间

和 Table11[文本值] = 表 [1510] 文本值

然后对所有 Table11[数值] 求和。

我想在 Table1510 中自动填充这个公式,所以也许我必须用数组公式来做,但我不能让它工作。

我尝试了以下但没有奏效:

=SOMMEN.ALS('Productiegegevens nieuw.xlsm'!Tabel11[Downtime door technische fout];[@Equipment];'Productiegegevens nieuw.xlsm'!Tabel11[Equipment];[@[Datum uitvoering]];"<="&'Productiegegevens nieuw.xlsm'!Tabel12[Datum];[@[Datum eind uitvoering]];">="& 'Productiegegevens nieuw.xlsm'!Tabel12[Datum])

标签: excelexcel-formula

解决方案


在谷歌翻译的帮助下,我试图确定你的公式的问题。看起来至少有一个条件范围和条件不同步,如果翻译正确,那么您的日期>=<=运算符不匹配。

Datum uitvoering                 Date of execution (startdate)
Datum eind uitvoering            Date of completion (enddate)
Downtime door technische fout    Downtime due to technical error (numerical value)
Equipment                        Equipment (text value)

您必须将外部工作簿名称添加到 Table11,但这是我想出的。

=SUMIFS(Tabel11[Downtime door technische fout], Tabel11[Datum], ">="&[@[Datum uitvoering]], Tabel11[Datum], "<="&[@[Datum eind uitvoering]], Tabel11[Equipment], [@Equipment])

在此处输入图像描述


推荐阅读