Cumulative sum with data in unequal increments

Chris88kemp

New Member
Joined
Oct 8, 2019
Messages
1
Dear All,

I would like to calculate the cumulative volume of liquid from a pipe over the period of 22 years. Data has been given on a daily basis, however in some instances this covers multiple days.

The format of the native data is as follows:


DAYLIQUID RATE, M3/DCUMULATIVE VOLUME, M3
1202= 202
2210= 210 + 202
3215= 215 + 210 + 202
13280= 280 + (215 * (13 - 3)) + 210 + 202
30330= 330 + (280 * (30 - 13))+ (215 * (13 - 3)) + 210 + 202
etcetcetc

<tbody>
</tbody>

The issue starts on day 3 where the daily flowrate of 215 continues through to day 13, which then increases to 280 per day until day 30.

Does anyone know how this can be neatly calculated in a formula which I can replicate down. The data has 10,000 + rows so adding intermediate rows to cover each individual days is impractical.

Thanks in advance
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
How about


Book1
ABC
1DAYLIQUID RATE, M3/DCUMULATIVE VOLUME, M3
21202202
32210412
43215627
5132802842
6303307652
Planner
Cell Formulas
RangeFormula
C2=B2
C3=B2*(A3-A2-1)+B3+C2
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,064
Members
448,941
Latest member
AlphaRino

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