Crosssover
New Member
- Joined
- Dec 2, 2020
- Messages
- 2
- Office Version
- 365
- 2016
I want to use vba dictionary method to calculate over 100k rows instead of in worksheet countif function to reduce time of calculation but I could not find how to convert my formula which shown in below.
Range("AG2").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X2 & Z2 & "TRUE")"
Range("AG3").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X3 & Z3 & "TRUE")"
Range("AG4").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X4 & Z4 & "TRUE")"
...
Range("AG100000").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X100000 & Z100000 & "TRUE")"
Does anyone help me to convert it dictionary method?
Range("AG2").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X2 & Z2 & "TRUE")"
Range("AG3").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X3 & Z3 & "TRUE")"
Range("AG4").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X4 & Z4 & "TRUE")"
...
Range("AG100000").Formula = "=COUNTIF($AF$2:$AF100000,"YES" & X100000 & Z100000 & "TRUE")"
Does anyone help me to convert it dictionary method?