Macro for Updating Cumulative Totals Monthly

NikolaB

New Member
Joined
Jul 19, 2011
Messages
2
Running Windows XP - Excel2007

Each month I prepare financial spreadsheets that include entries for that month and a running cummulative total for the year. I add the current month to the cumulative total last month (by referencing the same cell in last months spreadsheet).

Each month I have to change the file reference to the most recent month in order to have the running total to sum with the current month. Because of the large number of entries, I would really appreciate some help with a macro that might automate the shifting of the referenced file. Below is a very simplified sample of what I am working with.

Many Thanks!
Excel Workbook
ABCD
1CostOld Cumulative 2011March 2011Cumulative Total 2011
2Material='C:\[February Financials.xls]cost'!D2100=B2+C2
3Personnel='C:\[February Financials.xls]cost'!D3200=B3+C3
4Overhead='C:\[February Financials.xls]cost'!D4300=B4+C4
5Total=SUM(B2:B4)600=B5+C6
cost
Cell Formulas
RangeFormula
C5=SUM(C2:C4)
 

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
To clarify - in the next hypothetical month (April), I create a new spreadsheet from this template and input new values in Column C for the current month. Then I have to change all the references in Column B to [March Financials.xls]. This process is done every month to have the correct cumulative total but I am hoping it can be automated to save time with the sheer number of cells that need to be changed.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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