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

VBA: Using "

$
0
0
Hello,

tried few variations to include "<=" symbol in ( Rngdate ) the following function..but could not succeed. Can someone assist please.. ( the below code works perfectly but it is comparing for an "Exact" Date match but i need to count number of instances "Less then" given date)

Code:

Resvalue = Evaluate("=countifs(Empname,""" & RngEmpName & """,jdate," & CLng(Rngdate) & " )")
Note: Empname and Jdate are named ranges
Rngempname and Rngdate are VBA Variables
Expected Result: count "Jdate"s <= Rngdate

Viewing all articles
Browse latest Browse all 50049

Trending Articles