VBA, need help calculating YTD values

nooch1123

New Member
Joined
Sep 7, 2008
Messages
5
Hi,
I have several workbooks with similar worksheets , just different month's values. How would I create a YTD workbook with the same exact sheets only totals using VBA. meaning every new month I want to activate that month's workbook and add the corresponding values into each cell of the YTD workbook.

Thanks again,
Nooch
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
IF the YTD layout is EXACTLY the same as the monthly layout:

0) Verify that the data has not already been added
1) Copy the month data
2) Select the YTD worksheet
3) Use Edit PasteSpecial Values Add
4) Update a field to show that the data for the month has been added
 
Upvote 0
Thanks again,

I thought about the past special add and I have tested it to make sure it is accurate. This was definitely useful advice.
 
Upvote 0
You could also use 3 dimensional formulas:
Code:
=SUM(Jan_Sheet:Dec_Sheet!F11)
This would keep a running total without having to perform a monthly action.
 
Upvote 0

Forum statistics

Threads
1,203,250
Messages
6,054,382
Members
444,721
Latest member
BAFRA77

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