donohara1
asked on
how to create Totals for the same column for all sheets in an Excel workbook. VBA
I have Excel workbooks that have a variable number of sheets. I would like to sum the same column in each sheet, and create a table (in a new sheet) that has the sheet name, total and number of values in 3 columns. There is no other numeric data in these columns
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect.
Then, on another worksheet, use formulas to pull in the grand totals, such as:
=SUM(Table1[MyValueColumnN
=SUM(Table2[MyValueColumnN
=SUM(Table3[MyValueColumnN
etc.
If you have the name of the table in, say, Col A, you can use:
=SUM(INDIRECT(A1&"[MyValue