Cumulative Addition with constraint

JoeChanps

New Member
Joined
Oct 5, 2016
Messages
26
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Col.H
[/TD]
[TD]Col. L
[/TD]
[TD]Col. O
[/TD]
[TD]Date:
[/TD]
[TD]14.09.2018
[/TD]
[/TR]
[TR]
[TD]Date
[/TD]
[TD]Length
[/TD]
[TD]Cum. Length / Result
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21.08.2018
[/TD]
[TD]4
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]25.10.2018
[/TD]
[TD]6
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]06.11.2018
[/TD]
[TD]8
[/TD]
[TD]14
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]29.11.2018
[/TD]
[TD]5
[/TD]
[TD]19
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17.07.2018
[/TD]
[TD]9
[/TD]
[TD]13
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]01.08.2018
[/TD]
[TD]7
[/TD]
[TD]20
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09.08.2018
[/TD]
[TD]12
[/TD]
[TD]32
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22.08.2018
[/TD]
[TD]22
[/TD]
[TD]54
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Hey guys,

I need some help with a tricky problem and I have no clue how to solve it. Basically what I want is to accumulate the data with a constraint. So..
In Col. O are the results. Don't know if it's possible withou VBA?!

Every date that is before/equal 14.09.2018 should be accumulated (here the accum. dates are: 21.08.2018, 17.07.2018, 01.08.2018, 09.08.2018 and 22.08.2018).

And the other ones should be accumulated as well.

Thank you for your help.

With best regards
Joe
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Like this?

Excel Workbook
HIJKLMNOPQ
1DateLengthCum. Length / ResultDate:14/09/2018
221/08/201844
325/10/201866
46/11/2018814
529/11/2018519
617/07/2018913
71/08/2018720
89/08/20181232
922/08/20182254
Cumulative length
 
Last edited:
Upvote 0
You're very welcome.

Just realised we could write the formula more simply though. :)

Excel Workbook
HIJKLMNOPQ
1DateLengthCum. Length / ResultDate:14/09/2018
221/08/201844
325/10/201866
46/11/2018814
529/11/2018519
617/07/2018913
71/08/2018720
89/08/20181232
922/08/20182254
Cumulative length
 
Last edited:
Upvote 0
Even better. I just have to understand the formula now, i.e. how it works. But you helped me a lot. I really appreciate it.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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