我正在整理一个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)))