Try this one:
Range("C1").Formula = "=COUNTIF(B2:B10,"">"" & A1)"
Pergunta
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.
Solução
Try this one:
Range("C1").Formula = "=COUNTIF(B2:B10,"">"" & A1)"