Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50178

VBA: Using Evaluate / Countifs Combination to Compare Dates

$
0
0
Hello,

the below code works fine. But this checks for matching date and i would like to use "<=" in this function to compare Date.
Code:

Resvalue = Evaluate("=countifs(Empname,""" & RngEmpName & """,jdate," & CLng(Rngdate) & " )")
for example, JoiningDate=CurrentDate is counted whereas i would require to count JoiningDate<=CurrentDAte

can someone help on how to include that?

Thanks.

Viewing all articles
Browse latest Browse all 50178

Trending Articles