R
ram
could someone help me with this code
Private Sub Worksheet_Activate()
Dim jan As String, I As Long, X As Integer
Dim v As Variant
For I = 1 To 12
X = I
jan = "=SumProduct(--(Sheet4!A1:A30000=" & _
"OFFSET('processed Amount'!A1,0,X,1,1)),--(Sheet4!AL1:AL30000 > 0))"
v = Evaluate(jan)
Range(X&2) = v
Next I
End Sub
I'm trying to populate cells b2...m2 with the number of counts based on the
following criteria:
the date is equal to the dates in cells b1...m1 and the total is >0
Thanks for nay help
Private Sub Worksheet_Activate()
Dim jan As String, I As Long, X As Integer
Dim v As Variant
For I = 1 To 12
X = I
jan = "=SumProduct(--(Sheet4!A1:A30000=" & _
"OFFSET('processed Amount'!A1,0,X,1,1)),--(Sheet4!AL1:AL30000 > 0))"
v = Evaluate(jan)
Range(X&2) = v
Next I
End Sub
I'm trying to populate cells b2...m2 with the number of counts based on the
following criteria:
the date is equal to the dates in cells b1...m1 and the total is >0
Thanks for nay help