+ Reply to Thread
Results 1 to 2 of 2

Formula across several sheets with variable names

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    Bath, UK
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    86

    Formula across several sheets with variable names

    Is there a way to use formula (Sum in this particular case) across multiple sheets with sheet names having a particular criteria?

    The sheet names are 5 digits but not sequential (cost centre numbers). I'm trying to find the total if the sheet name (number) falls within a particular range (e.g. 150xx-152xx, 153xx-168xx), with around 60 or so sheets in total.

    I know it's possible to specify the range myself, or to add a blank sheet as a marker/guide to create a "sandwich" of the required sheets (e.g. =SUM(Start:End!A1)), but the cost centre ranges may change if they're changed so I'm trying to find a way to identify them as variables rather than requiring maintenance.

    Although the layout of the sheets should not change (and so a macro might work..?) I think I'd prefer to find a formula (if possible) so anyone using it can see what's going on


    Can anyone help, please?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula across several sheets with variable names

    Hi, if you want to identify them as variables and use a formula you need to use =INDIRECT()

    I don't think you can use indirect as a "3D" function (across multiple sheets, so you would need to do:
    =INDIRECT(A1 & "!A1")+INDIRECT(B1 & "!A1")
    and so on, where A1 and B1 are your sheet names.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting data from sheets with variable names.
    By cscld in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2013, 01:19 AM
  2. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 12:42 PM
  3. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 09:08 AM
  4. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 09:07 AM
  5. Refering to sheets with Variable Names
    By mangisqa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 09:01 AM

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