Cumulative monthly total

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
280
Office Version
  1. 365
Platform
  1. Windows
Excel 2007

Column A contain dates chronologically from
01-01-2020 to 31-03-2020 for 3 months
in dd-mm-yyyy format.

Column B in numerical. On daily basis expenses
for the particular dates are entered

Column C in numerical. Calculates cumulative
total expenses.

My request: Column C should start afresh every
month.
For example upto 31-01-2020,
total cumulative expenses 80000. On
01-02-2020 (Feb Begins); Col B expenses
that day is 1500. Now Col C cumulative
total shows 81500.

Here, I want Col C to show 1500 (being
cumulative total for Feb.

Request formula. Thanking you,
 
Do you mean a monthly progressive average like this?

20 02 27.xlsm
ABCD
1DateExpenseCum TotalMonth Cum Average
201-Jan-20111
302-Jan-20231.5
403-Jan-20362
504-Jan-204102.5
605-Jan-205153
706-Jan-206213.5
831-Jan-207284
901-Feb-20888
1002-Feb-209178.5
1105-Feb-2010279
1202-Mar-2011  
1303-Mar-201  
Cum Total
Cell Formulas
RangeFormula
C2:C13C2=IF(A2>TODAY(),"",B2+IF(TEXT(A2,"m")=TEXT(A1,"m"),C1,0))
D2:D13D2=IF(C2="","",C2/SUMPRODUCT(--(TEXT(A$2:A2,"m")=TEXT(A2,"m"))))
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Dear Peter Sir, My required output in your above example,

D9 should show 0.27 (C9/27 - Feb 29 days); & likewise
D11 should show 0.93 (C11/29)

Thank you Sir
 
Upvote 0
Upvote 0
Maybe something like this. Formula in D2 will give a running average per month or you could do something like formula in G2 to just average per month (cells in column F are formatted as MMM-YYY).
NOTE: Both of these formulas are array formulas and must be entered with CTRL-SHIFT-ENTER. then draw formula down as needed.

Book1
ABCDEFG
1DateExpenseCum TotalCum AvgMonth/YrAver
21/1/2020111.001/1/20204.00
31/2/2020231.502/1/20209.00
41/3/2020362.003/1/2020 
51/4/20204102.504/1/2020 
61/5/20205153.005/1/2020 
71/6/20206213.506/1/2020 
81/31/20207284.00
92/1/2020888.00
102/2/20209178.50
112/5/202010279.00
123/2/202011  
133/3/20201  
Sheet1
Cell Formulas
RangeFormula
C2:C13C2=IF(A2>TODAY(),"",SUMPRODUCT(--(MONTH($A$2:A2)=MONTH(A2)),($B$2:B2)))
D2:D13D2{=IF(A2>TODAY(),"",AVERAGE(IF(MONTH($A$2:A2)=MONTH(A2),$B$2:B2)))}
G2:G7G2{=IF(MONTH(F2)>MONTH(TODAY()),"",AVERAGE(IF(MONTH($A$2:$A$13)=MONTH(F2),$B$2:$B$13)))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,947
Members
449,095
Latest member
nmaske

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