I have this data in excel:

sale x time:  

[![sale x time](https://i.stack.imgur.com/l6I7S.jpg)](https://i.stack.imgur.com/l6I7S.jpg)

How do you get the maximum sum between values between zero with a formula? For example, in the first row 2 or 3 in the second row. In other words, how to get the sum between equal and consecutive values with excel

Thanks.