Update columns with summation based on criteria in multiple sheets

jayped

Board Regular
Joined
Mar 20, 2019
Messages
54
Hello,

I'm not sure if this is possible and I have limited knowledge of macros. Here is what I want to achieve:

I have a Summary Sheet with a list of names and ID numbers vertically and each month of the year horizontally as columns - e.g Jul 2019, Aug 2019, and so on. I will then have a tab for each month with data. A new sheet will be added at the end of each month. In each sheet, let's use 'Sep 2019' for example, will have a column containing amounts, a column containing names, and a column containing ID numbers (Columns J,K & L). I want to be able to run a macro that updates the Sep 2019 column on the Summary sheet by looking up the ID number on the Summary sheet and summing all the amounts that occurred on the Sep 2019 sheet for that ID number.



Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try:

Code:
sh1.Range("C4:O240").ClearContents
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,841
Members
449,193
Latest member
MikeVol

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