+ Reply to Thread
Results 1 to 4 of 4

Adding the same cell in all sheets

  1. #1
    Registered User
    Join Date
    07-11-2009
    Location
    aarhus
    MS-Off Ver
    Excel 2003
    Posts
    24

    Adding the same cell in all sheets

    Hello. I have found following example:

    This month I will show you some handy formulas used with a twist.

    SUM ALL SHEETS

    The first one is how we can use the SUM function to Sum, say cell A1, on all Worksheets in your Workbook. With this method, all new sheets that are added to the Workbook are included in the SUM. Here is how;

    Add a new Worksheet to you Workbook at the far right. To do this select "Worksheet" under "Insert" on the Worksheet Menu Bar. Then left click on this new Worksheet name tab, holding down the the left mouse button drag to the far right and release.
    Name this sheet (double click the name tab) "Spacer" (although any name will do).
    With "Spacer" being the active sheet, go to Format>Sheet>Hide.
    Repeat steps 1 to 3 above, but this time name the Worksheet "Start " and drag it to the far left.
    On the Worksheet you wish to have the result shown on enter: =SUM('Start :Spacer'!A1)
    Add any number of new Worksheets, enter some numbers into A1 of any Worksheet and it will be included in the SUM. Move the Worksheets order around, Delete sheets etc and the SUM function still includes all Worksheets.

    If you have concerns that a user may unhide/delete/move the Worksheets "Start & "Spacer", go to Tools>Protection>Protect Workbook (ensure "Structure" is checked), supply a password (optional) and click OK
    .

    From http://www.ozgrid.com/News/excel-validation-tips.htm

    However, I cant get the code to work when following the guide. I tryed replacing the : with a ; so that the result is:
    =SUM('Start;Spacer'!A1)

    However this just open the 'look in explorer' as I was to open a new file.

    Can you get it to work, and how?

    Thanks
    Last edited by naquer; 09-10-2009 at 11:45 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Adding the same cell in all sheets

    You will need to post your sample file... ie

    =SUM('Start:Spacer'!A1)

    should work ...

    So... what is the result you get with the above ? #REF! or something else ?

    If #REF! do you have sheets called Start & Spacer in your file ?

  3. #3
    Registered User
    Join Date
    08-20-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Adding the same cell in all sheets

    If you are using this:

    ...On the Worksheet you wish to have the result shown on enter: =SUM('Start :Spacer'!A1)

    which was in the instructions then there is an extra space after start:

    >> ('Start : <<

    Get rid of the space and it should work fine, must have been a typo on the guide.

    Thanks

  4. #4
    Registered User
    Join Date
    07-11-2009
    Location
    aarhus
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Adding the same cell in all sheets

    Thanks for the responses. However this formula seemed to solve my problem:

    =SUM(Start:Spacer!A1)

    (Without the ' ' )

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1