选择 $M:$M 和 $N:$N returns "Array arguments to COUNTIFS are a different size"

Selecting $M:$M and $N:$N returns "Array arguments to COUNTIFS are a different size"

在验证代码的其他部分确实有效后,我简化了下面的代码以提高可读性。当我 select 一个特定的范围时,它工作,但是 select 整个 M 和 N 列说有不同的数组大小。

我检查了范围,两个单元格的最后一个单元格都在同一标记处,所以我不确定可能是什么问题。

请告诉我是否有任何问题 :)

=countifs("New Leads!"$M:$M), NameCell,"New Leads"!$N:$N),Value)

这是正确的语法:

=COUNTIFS('New Leads'!M1:M, "NameCell", 'New Leads'!N1:N, 1)