ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   summarise totals from many worksheets into one final worksheet (https://www.excelbanter.com/excel-worksheet-functions/66684-summarise-totals-many-worksheets-into-one-final-worksheet.html)

NAAPS

summarise totals from many worksheets into one final worksheet
 
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.

Gary''s Student

summarise totals from many worksheets into one final worksheet
 
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.
--
Gary's Student


"NAAPS" wrote:

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.


Don Guillett

summarise totals from many worksheets into one final worksheet
 
If the sums to be totalled are all in the same cell in each worksheet
=sum(firstsheet!:lastsheet!a1)

--
Don Guillett
SalesAid Software

"NAAPS" wrote in message
...
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.




Dave Peterson

summarise totals from many worksheets into one final worksheet
 
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.


NAAPS wrote:

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.


--

Dave Peterson


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com