I can't get this vba coding to work, please help:

Range("C1").Formula ="=Countifs(B2:B10,>&A1)"

I want to count cells with value greater than A1 in range B2:B10.

Thanks.

有帮助吗?

解决方案

Try this one:

Range("C1").Formula = "=COUNTIF(B2:B10,"">"" & A1)"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top