I need to have a formula that i can put in each cell in row 2 below, that will return the value in the cell above it - if the number above it (row 1) is positive.
However, if the cell above it (row1) is negative, I need to return 0 in cell row 2, and cumulate-sum the negative number in row 1 with number next to it and so on, until I get a positive amount from the temporary sum and display this in row 2.

In short, cells in row 2 cannot be negative, but the total in row 2 should still be = total in row 1.

Row 1: 0 2 -3 2 5 -2 3
Row 2: 0 2 0 0 4 0 1


was thinking an array formula, but not sure how.