为什么此SUMPRODUCT引发错误?结构还可以,基础列没有错误

时间:2018-09-27 21:28:21

标签: excel

我正在整理一个SUMPRODUCT公式。我知道公式的结构正确,因为如果更改公式的最后一部分,它就可以正常工作。

Table1[Milestone Date - Started]列似乎是问题所在,但为什么呢?它仅包含日期,并且不包含错误或空格。

此公式可以正常工作:

=SUMPRODUCT(
--(Table1[MS more than 40 days] = "Dead"),
--(MONTH(Table1[Milestone Date - submittal]) = MONTH(Table1[Disb Date for loans that have a Closing Date])),
--(YEAR(Table1[Milestone Date - submittal]) = YEAR(Table1[Disb Date for loans that have a Closing Date])),
--(DAY(Table1[Milestone Date - submittal NW]) = Y$36),
--(Table1[Disbursement Date] >= WORKDAY(EOMONTH(43317, 1), -4)))

但是此公式引发错误,唯一的不同是最后一行:

=SUMPRODUCT(
--(Table1[MS more than 40 days] = "Dead"),
--(MONTH(Table1[Milestone Date - submittal]) = MONTH(Table1[Disb Date for loans that have a Closing Date])),
--(YEAR(Table1[Milestone Date - submittal]) = YEAR(Table1[Disb Date for loans that have a Closing Date])),
--(DAY(Table1[Milestone Date - submittal NW]) = Y$36),
--(Table1[Disbursement Date] >= WORKDAY(EOMONTH(Table1[Milestone Date - Started], 1), -4)))

0 个答案:

没有答案