SUM cells with a specific column header from multiple worksheets - Using VBA

crysperez

New Member
Joined
Aug 21, 2014
Messages
3
Hi all,

I'm new to VBA and I'm seeking some assistance with a macro. I have a workbook with multiple sheets and I would like to sum all cells below a specific column header named, "Total Usage." The column is dynamic in position (doesn't always fall under the same column or row) and can appear multiple times in a single worksheet.

Is there a way to find the term "Total Usage" and sum all cells that fall under that column header? I'd also like the sum to appear in the first sheet (summary sheet).

Please let me know if I can provide any additional details to help with my request.

Thanks in advance for your help!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
another approach.

Why not all data on 1 sheet.

After that you can easily analyze the data (e.g. with an pivot table).
 
Upvote 0
Hi Oeldere,

The workbook can contain an enormous amount of data so I thought a macro would be more efficient. I unfortunately don't have the resources to merge all the data onto 1 sheet.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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