Hi Guys (Soon be Christmas) ??
I am traying to perform a Sumifs in VBA between two dates. If I use a standard formula on a sheet its works great:
. This gives me 98.
If I use:
I get Zero!
If I use:
I still get Zero!
Any ideas what I'm doing wrong?
Have a good Weekend Guys ?????
I am traying to perform a Sumifs in VBA between two dates. If I use a standard formula on a sheet its works great:
Excel Formula:
=SUMIFS(B:B,A:A,">=17-11-2020",A:A,"<=23-11-2020")
If I use:
VBA Code:
rTotLL = rTot.Evaluate("SUMIFS(B:B,A:A,"">=17-11-2020"",A:A,""<=23-11-2020"")")
If I use:
VBA Code:
rTotLL = Application.WorksheetFunction.SumIfs(.Range("b2:b" & RW), .Range("a2:a" & RW), ">=17-11-2020", .Range("a2:a" & RW), "<=23-11-2020")
Any ideas what I'm doing wrong?
Have a good Weekend Guys ?????