hello
i have this code it supposes giv me total of specific date based on brand but it gives me 0
Sub Test9()
Dim rB As Range
Dim dResult As Double
Set rB = Range("a2", Range("a" & Rows.Count).End(xlUp))
dResult = Application.WorksheetFunction.SumIfs( _
rB.Offset(0, 4), _
rB, "<=" & DateSerial(2020, 1, 16), _
rB.Offset(0, 1), "=1200R20")
MsgBox dResult
End Sub
i hope some body help