i can figure what you want, but post a workbook with sample data for testing
this is untested and may contain code errors or typos
For rw = 1 To Cells(Rows.Count, 3).End(xlUp).Row
With Cells(rw, 3)
If .Value > 1000 Then
tmp = 0
tot = .Offset(, -1).Value
Do Until .Offset(tmp, 1).Value > 1000
tot = tot + .Offset(tmp, -1).Value
tmp = tmp + 1
Loop
.Offset(, 6).Value = tmp
.Offset(, 7).Value = tot
.Offset(, 8).Value = .Value
.Offset(, 9).Value = .Offset(tmp, 1).Value
.Offset(, 10).Value = 1
Else
.Offset(, 10).Value = 0
End If
rw = rw + tmp
Next
you may need to change the guessed value of 1000 i used and change the offset of the target columns
test to see if it works as you want