我正在尝试为计数提供可变输入,并坚持如何执行以下操作。让我知道是否有任何可能的方法来做到这一点。
dumi = ".Range(.Cells(2, Submit_date), .Cells(lastrow, Submit_date))"
i = Application.WorksheetFunction.CountIfs(dumi, ">=" & date1, _
dumi, "<=" & date2)
我也试过,
dumi = .Range(.Cells(2, Submit_date), .Cells(lastrow, Submit_date))
i = Application.WorksheetFunction.CountIfs(dumi, ">=" & date1, _
.Range(.Cells(2, Submit_date), .Cells(lastrow, Submit_date)), "<=" & date2
但没有一个有效..帮帮我