下面是一个示例代码,当我复制到另一台具有相同版本的excel的计算机时,我得到零。
i = Application.WorksheetFunction.CountIfs(.Range(.Cells(2, resolve_date), .Cells(lastrow, resolve_date)), ">=" & date1, _
.Range(.Cells(2, resolve_date), .Cells(lastrow, resolve_date)), "<=" & date2, .Range(.Cells(2, Planned_release), .Cells(lastrow, Planned_release)), rel)
当我在我编码的计算机上运行时,它会返回非零值(预期),这可能是什么原因?