I need a formula to reach the output below. I need to have the cells sum the numbers before it that are negative and have it stop once it reaches a positive number. Also, if the number is negative I need it to end up as 0. Thanks in advance for any contribution you make to helping me get this figured out!

Data

200 400 -100 -300 500 600 -200 700

Output

200 400 0 0 100 600 0 500