+ Reply to Thread
Results 1 to 8 of 8

Reference another sheet without knowing it's name

  1. #1
    Registered User
    Join Date
    05-21-2013
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    86

    Reference another sheet without knowing it's name

    Is there a means to reference other sheets without knowing their name within a formula.
    I know it can be done in VBA with sheets(1) etc and looking for something much the same within a formula (without a UDF).
    Sheet order isn't a problem, just their names.

    TIA
    Last edited by duffry; 07-08-2013 at 11:18 AM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Reference another sheet without knowing it's name

    Not in a formula, at least not without VBA.

    A formula can't refer to the Sheet Index number like VBA can with Sheets(1)

  3. #3
    Registered User
    Join Date
    05-21-2013
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    86

    Re: Reference another sheet without knowing it's name

    I feared as much.
    Thanks for the speedy reply.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Reference another sheet without knowing it's name

    You're welcome..

    Just curious why this is important?
    Are you just worried about sheets getting renamed?
    Formulas will automatically adjust themselves when a sheet is renamed.

  5. #5
    Registered User
    Join Date
    05-21-2013
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    86

    Re: Reference another sheet without knowing it's name

    I have a grid of colourd blocks that forms a pseudo-chart.
    I have been able to jigger the formula in the cell enough that I can use the same formula in each cell (with automatic relative adjustment) for each hour in each day but the data for each week is on a different sheet. The sheet will also be copied and changed for a new month. The renaming should, as you say, be fine to adjust the formulas once set up. I was just hoping to not have to rejig them to get them set up.

    Not a big issue and honestly I've almost worked around it anyway. It was more curiosity that led me to post.
    :o)

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Reference another sheet without knowing it's name

    Just for the heck of it, you may find this interesting:

    http://www.excelforum.com/tips-and-t...a-formula.html

    You could adapt that technique to generate the sheet name based on the sheet number.

    Technically, it's not VBA but would still require the file to be saved as a macro enabled file in Excel 2007 and later.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    05-21-2013
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    86

    Re: Reference another sheet without knowing it's name

    Like it, thanks.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Reference another sheet without knowing it's name

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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