VBA Sum all worsksheets in column T

Weeble

Board Regular
Joined
Nov 30, 2016
Messages
95
Office Version
  1. 365
Heya !

I have a pretty big excel file with aprox 60 worksheets. In every sheet column T has aprox 1000-4000 rows of data.
How would be the easiest way to summarise this data into a "summary-sheet" ?
There is alot of blank spaces in column T aswell if that might be an issue?
 
You're right.

I use the usual solution of adding one worksheet before and one after the group of worksheets in the formula. I name them Start and End and then use

=SUM(Start:End!T:T)

This way I can insert, delete or move worksheets as long and they remain between Start and End and the formula will always work.

I like this method alot! Can you use it with a sum.if function? I get a #Value error when I try it.
=SUM.IF('1:57'!S:S;"M3";'1:57'!P:P) , using it without :57 it works. But when I try to add in start to end it fails. any thoughts?
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
No, 3D ranges do not work with conditional formulas.

You'll have to either use the formula solution with the list of worksheets and Indirect() or a udf.
ok, do you know what I would need to add to get the results? =SUM.IF(S:S;"M3";P:P) Application.Sum(WS.Range("T:T")) ?
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,734
Members
449,094
Latest member
dsharae57

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