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.
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 SubIt 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 Studentquot;NAAPSquot; wrote:
gt; I need to add totals from many worksheets onto one final Summary worksheet.
gt; the formula I create is too long for Excel. is there a way to shorten the
gt; formula eg using the SUM function Shift or Control keys? I believe Lotus
gt; is able to do this.
If the sums to be totalled are all in the same cell in each worksheet
=sum(firstsheet!:lastsheet!a1)
--
Don Guillett
SalesAid Software
quot;NAAPSquot; gt; wrote in message
...
gt;I need to add totals from many worksheets onto one final Summary worksheet.
gt; the formula I create is too long for Excel. is there a way to shorten the
gt; formula eg using the SUM function Shift or Control keys? I believe
gt; Lotus
gt; is able to do this.
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 quot;sandwichquot; 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:
quot;don't delete this sheet!quot;
And protect the worksheets so that people don't use it for real data.NAAPS wrote:
gt;
gt; I need to add totals from many worksheets onto one final Summary worksheet.
gt; the formula I create is too long for Excel. is there a way to shorten the
gt; formula eg using the SUM function Shift or Control keys? I believe Lotus
gt; is able to do this.
--
Dave Peterson
- May 27 Tue 2008 20:44
summarise totals from many worksheets into one final worksheet
close
全站熱搜
留言列表
發表留言
留言列表

