summarise totals from many worksheets into one final worksheet

G

Guest

I need to add totals from many worksheets onto one final Summary worksheet.
the formula I create is too long for Excel. is there a way to shorten the
formula eg using the SUM function + Shift or Control keys? I believe Lotus
is able to do this.
 
G

Guest

If yo have many worksheets, the formula approach will be very long. Look at
this small piece of VBA:


Sub Macro1()
Dim w As Worksheet
t = 0
For Each w In Worksheets
w.Activate
t = t + Cells(1, 1)
Next
MsgBox (t)
End Sub


It adds up all the A1 cells in the workbook.
It doesn't care how many worksheets there are.
It doesn't need to know the names of the worksheets.

Perhaps you can adapt it for your needs.
 
D

Don Guillett

If the sums to be totalled are all in the same cell in each worksheet
=sum(firstsheet!:lastsheet!a1)
 
D

Dave Peterson

Are your totals always in the same cells in each worksheet. I like to put my
totals in Row 1--so I know where they are.

And then...

I'd create two new worksheets--one to the far right and one to the far left.

Call them Start and End

Then using a sheet (Summary) that is outside this "sandwich" of worksheets:

=Sum(start:end!A1)

Then you can drag sheets in and out of that sandwich to play what if games.

I'd put a couple of notes on each of these sheets:

"don't delete this sheet!"

And protect the worksheets so that people don't use it for real data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top