# Beginner's trouble with reseting sum

#### audotja

##### New Member
Hey!

I'm trying to create simple excel to use in flea market. There have been some wishes I'm trying to follow. All other problems I have solved and learned a lot by solving them, but I still have few. I have tried to find similar questions, but haven't found anything useful.

Columns A and C are left for sellers to fill in. But the column B is a problem. It is like cumulative sum, but if there are gaps, it resets. What kind of formula I need to use? Or is there any other way?

I would be really grateful for any help.

 1 A B C D 2 Price Sum Money Given Back 3 0,50 0,50 - 4 0,70 1,20 1,20 - 5 - - 6 3,00 3,00 - 7 2,50 5,50 10,00 4,50 8 - -

<tbody>
</tbody>

### Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

#### steve the fish

##### Well-known Member
Put this in B3 and copy down:

=IF(A3<>"",SUM(\$A\$3:A3),"-")

#### steve the fish

##### Well-known Member
Sorry misread. If you want it to reset the sum try something like this in B3:

=IF(A3="","-",IF(A2="",A3,B2+A3))

#### audotja

##### New Member
Thank you, I was able to get it work!

Replies
8
Views
288
Replies
38
Views
2K
Replies
2
Views
203
Replies
32
Views
1K
Replies
0
Views
730

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,600
Messages
5,832,650
Members
430,151
Latest member
Kacbear

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

### Which adblocker are you using?

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

### Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back