Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I've a variable date
and a range populated by dates
How can I count how many dates in the range are greater then date1?
I'm trying this:
but it doesn't work ( result = 0 ).
Thank's in advance for helping me.
I've a variable date
VBA Code:
date1
and a range populated by dates
VBA Code:
rng
How can I count how many dates in the range are greater then date1?
I'm trying this:
VBA Code:
result = Application.CountIf(rng, ">" & date1)
but it doesn't work ( result = 0 ).
Thank's in advance for helping me.