See if this solves your problem.
If column A contains the numbers you wish to sum beginning with row 2, type this formula in column B starting with cell B2:
=if(A2>0,B1+A2,0)
Copy this formula down as far as you have rows. You will have a running summation for each group.
If you don't want...