T
T
Hello.. I've tried using both of the following & neither work. Can anyone
help? The first doesn't do anything and the second returns a Value error.
For i = 1 To lstRow - 1
If Cells(i, 1).Value <> Cells(i + 1, 1).Value Then
Cells(i + 1, 9).Formula = "=SUMPRODUCT(--(a1:A" & lstRow & "),--(H1:H "
& lstRow & "< 0.0215277777777778),H1: & lstrow)"
Else 'nothing
End If
Next i
For i = 1 To lstRow - 1
If Cells(i, 1).Value <> Cells(i + 1, 1).Value Then
Cells(i + 1, 9).Formula = evaluate("SUMPRODUCT(--(a1:A" & lstRow &
"),--(H1:H " & lstRow & "< 0.0215277777777778),H1: & lstrow)")
Else 'nothing
End If
Next i
help? The first doesn't do anything and the second returns a Value error.
For i = 1 To lstRow - 1
If Cells(i, 1).Value <> Cells(i + 1, 1).Value Then
Cells(i + 1, 9).Formula = "=SUMPRODUCT(--(a1:A" & lstRow & "),--(H1:H "
& lstRow & "< 0.0215277777777778),H1: & lstrow)"
Else 'nothing
End If
Next i
For i = 1 To lstRow - 1
If Cells(i, 1).Value <> Cells(i + 1, 1).Value Then
Cells(i + 1, 9).Formula = evaluate("SUMPRODUCT(--(a1:A" & lstRow &
"),--(H1:H " & lstRow & "< 0.0215277777777778),H1: & lstrow)")
Else 'nothing
End If
Next i