A
avi
Hello,
I'm writing an application that counts values in a large selection if
they comply to a crieria of greater than Firstvalue and smaller than
secondvalue .
The selection could be a huge Excel range, so that the speed is a very
important factor.
I use a procedure like:
For Each cell In Selection
If cell.Value <= secondvalue And cell.Value >= Firstvalue
Then R = R + 1
Next cell
Is it the fastest way or are there better ones (Excel functions?)
All the data are numeric
Thanks a lot
Avi
I'm writing an application that counts values in a large selection if
they comply to a crieria of greater than Firstvalue and smaller than
secondvalue .
The selection could be a huge Excel range, so that the speed is a very
important factor.
I use a procedure like:
For Each cell In Selection
If cell.Value <= secondvalue And cell.Value >= Firstvalue
Then R = R + 1
Next cell
Is it the fastest way or are there better ones (Excel functions?)
All the data are numeric
Thanks a lot
Avi