Archive of Mr Excel Message Board


Back to Forms in Excel VBA archive index
Back to archive home

Total multiple worksheets

Posted by John Burke on April 16, 2001 9:09 AM
Is it Possible to total cells from multiple worksheets?

Check out our Excel Resources

Re: Total multiple worksheets

Posted by Aladin Akyurek on April 16, 2001 9:19 AM

John

Yes, it's possible. I'd suggest to select each range in turn and give them meaningful names and use those names e.g. in a SUM formula.

Suppose you want to total the numbers in A1:A5 on Sheet1 and the ones in C4: D5 on Sheet2. Select A1:A5 and name it (say RangeA) via the Name Box or the option Insert|Name|Define. Name C4:D5, say RangeB, following the same recept. The following will work:

=SUM(RangeA,RangeB)

Aladin


Re: Total multiple worksheets

Posted by Bj on April 16, 2001 9:19 AM

Yep, try =SUM(Sheet2!A1,Sheet3!A1,Sheet4!A1)
Or =SUM(Sheet2!A:A,Sheet3!A:A,Sheet4!A:A)

Re: Total multiple worksheets

Posted by Bj on April 16, 2001 9:21 AM

I like Aladins better!


Re: Total multiple worksheets

Posted by Roger on April 16, 2001 10:59 AM
And if you're summing up the same cell (e.g., A5) from multiple worksheets (e.g., in an Annual worksheet for worksheets named jan, feb, ... dec), you could use sum(jan:dec!A5)

This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.