Cumulative Sum with Blanks

JJ93

New Member
Joined
Jan 13, 2021
Messages
5
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. Mobile
Hello,
I would like to do a cumulative sum of the products for each client. It should start from zero if a new client is mentioned and blanks should be treated as zero. I tried to do it with an Indirect(Adress) function,

new client, which did not work out. Here is the screenshot:

Any tips on how to do this?

Best regards,

JJJ
 

Attachments

  • Screenshot.png
    Screenshot.png
    25.5 KB · Views: 12

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to MrExcel Message Board.
Use Sumifs:
=Sumifs (SumRange, CriteriaRange,Criteria)
If Product is column D & clint is Column A Then
And 1 is Client Name at Column A

Excel Formula:
=Sumifs(D2:D100, A2:A100, 1)

Mail Generator2.xlsm
ABCDEFG
1ClientDateProductClientProduct Sum
2111/13/20201111
3111/16/2020742123
4111/19/2020
5111/22/202025
6111/25/2020
7111/28/202012
8112/1/2020
9112/4/2020
10212/7/2020
11212/10/202056
12212/13/2020
13212/16/2020
14212/19/202034
15212/22/202022
16212/25/202011
17212/28/2020
18212/31/2020
Sheet1
Cell Formulas
RangeFormula
G2:G3G2=SUMIFS($D$2:$D$18, $A$2:$A$18,F2)
 
Last edited:
Upvote 0
Thanks for your reply. I think you understood me wrong. It should look like this. Unfortunately my main table is much larger, so I cant do it that easy. (Around 50000 products)
1610536341860.png
 
Upvote 0
Try this:
Mail Generator2.xlsm
ABCDE
1ClientDateProductSum
2111/13/20200
3111/16/20207474
4111/19/202074
5111/22/20202599
6111/25/202099
7111/28/202012111
8112/1/2020111
9112/4/2020111
10212/7/20200
11212/10/20205656
12212/13/202056
13212/16/202056
14212/19/20203490
15212/22/202022112
16212/25/202011123
17212/28/2020123
18212/31/2020123
Sheet1
Cell Formulas
RangeFormula
E2:E18E2=SUMIFS($D$2:D2, $A$2:A2,A2)
 
Upvote 0
If the original data is sorted by client ID as in the example then this would be far more efficient than sumif or sumproduct.
Unfortunately my main table is much larger, so I cant do it that easy.
If the output in @maabadi's first suggestion is preferable then it can be done far simpler than any formula by use of a basic pivot table.
Manpower plan.xlsx
ABCDE
1ClientDateProductSum
2111/13/20200
3111/16/20207474
4111/19/202074
5111/22/20202599
6111/25/202099
7111/28/202012111
8112/01/2020111
9112/04/2020111
10212/07/20200
11212/10/20205656
12212/13/202056
13212/16/202056
14212/19/20203490
15212/22/202022112
16212/25/202011123
17212/28/2020123
18212/31/2020123
Sheet6
Cell Formulas
RangeFormula
E2:E18E2=SUM(D2,IF(A2=A1,E1))
 
Upvote 0

Forum statistics

Threads
1,215,231
Messages
6,123,754
Members
449,119
Latest member
moudenourd

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?

Disable AdBlock

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
Back
Top