BleepingComputer.com: Specific Excel Formula

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Specific Excel Formula Summing across worksheets

#1 User is offline   garnetwr 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 44
  • Joined: 10-December 04

Posted 18 April 2007 - 10:17 AM

I recently learned there is a function that allows you to sum across worksheets (tabs) ONLY IF each tab is laid out EXACTLY THE SAME as the other tabs. What is this function?

I'm not talking about =SUM(Sheet1!A2+Sheet2!A2+...) as the number of tabs creates a situation where the formula is too long. The formula I'm referencing is ONLY USABLE if the layout on EACH TAB IS EXACTLY THE SAME AS THE OTHER TABS BEING TOTALLED.

This post has been edited by garnetwr: 18 April 2007 - 11:51 AM


#2 User is offline   Mr Alpha 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 1,875
  • Joined: 25-November 04
  • Gender:Male
  • Location:Finland

Posted 18 April 2007 - 10:51 AM

Do you mean =SUM(Sheet1:Sheet3!A1) ?

This post has been edited by Mr Alpha: 18 April 2007 - 10:52 AM

"Anyone who cannot form a community with others, or who does not need to because he is self-sufficient [...] is either a beast or a god." Aristotle
Intel Core 2 Quad | XFX 780i SLI | 8GB Corsair | Gigabyte GeForce 8800GTX | Auzentech X-Fi Prelude| Logitech G15 | Logitech MX Revolution | LG Flatron L2000C | Logitech Z-5500 Digital

#3 User is offline   garnetwr 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 44
  • Joined: 10-December 04

Posted 18 April 2007 - 10:58 AM

Nope, it was something I would have never guessed...
Your suggestion might work though... I'll let you know.

In the meantime, if anyone knows that function, I'd like to knwo what it is...

View PostMr Alpha, on Apr 18 2007, 10:51 AM, said:

Do you mean =SUM(Sheet1:Sheet3!A1) ?


By the way, this worked on the mock-up I had, but am waiting to see if it works on the actual spreadsheet. Thanks in advance for you assistance and I will let you know if it did work on the actuals.

This post has been edited by garnetwr: 18 April 2007 - 11:52 AM


#4 User is offline   tos226 

  • BleepIN--BleepOUT
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 1,423
  • Joined: 21-October 04
  • Gender:Female
  • Location:LocalHost

Posted 18 April 2007 - 01:30 PM

Yes, it will work. To avoid being locked into specific sheet names or count thereof, a suggestion: insert two sheets to 'anchor' references to the existing sheets. Let's say we call those sheets sL and sR. Existing worksheets in the middle, sL on the left, sR on the right. Now, formula
=SUM('sL:sR'!A2) or
=SUM('sL:sR'!$A$2)
in any cell, in any sheet will do what you want, and permits adding,removing, renaming sheets inbetween L and R.There is nothing to stop you from summing data ranges, for instance
=SUM('sL:sR'!A2:C15)
Single quotes may not be needed.
It would not be a bad idea to protect the structure of the workbook, so that users can't delete those sL & sR worksheets. Hiding both is not a bad idea either.

#5 User is offline   projectfocus 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 474
  • Joined: 02-November 06
  • Gender:Male
  • Location:Brighton

Posted 23 April 2007 - 06:51 AM

There is the way of highlighting all of the cells on each sheet you wish to sum and give the cells a ref name. This c an be done by changing the cell ref on the top left of the sheet. Normally says A1 or the like. When you have named the cell ranges then you use the formular =Sum(xxx) where xxx is the name you assigned.
Posted Image

#6 User is offline   Zack Barresse 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 3
  • Joined: 01-May 07

Posted 01 May 2007 - 06:40 PM

View Posttos226, on Apr 18 2007, 11:30 AM, said:

Yes, it will work. To avoid being locked into specific sheet names or count thereof, a suggestion: insert two sheets to 'anchor' references to the existing sheets. Let's say we call those sheets sL and sR. Existing worksheets in the middle, sL on the left, sR on the right. Now, formula
=SUM('sL:sR'!A2) or
=SUM('sL:sR'!$A$2)
in any cell, in any sheet will do what you want, and permits adding,removing, renaming sheets inbetween L and R.There is nothing to stop you from summing data ranges, for instance
=SUM('sL:sR'!A2:C15)
Single quotes may not be needed.
It would not be a bad idea to protect the structure of the workbook, so that users can't delete those sL & sR worksheets. Hiding both is not a bad idea either.


This is the preferred way to do it. If you do not, however, want to create two extra sheets to just hang around, you can always position them where you want them and then hide the sheets (first and last sheets). Results will not change and position is not affected.

HTH
___________
Regards, Zack B. (If you would like comments in any code, please say so.)

OfficeArticles.com :|: Extreme Excel Tutorial :|: Excel Articles by Ken Puls

What is a Microsoft MVP?

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users