+ Reply to Thread
Results 1 to 6 of 6

Referencing sheets with a sheet number as opposed to sheet name

  1. #1
    Registered User
    Join Date
    03-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Referencing sheets with a sheet number as opposed to sheet name

    Hello

    I have a spreadsheet keeping track of inspection dates for a large quanitity of personal protective equipment (PPE) with each piece of PPE having it's own sheet containing all the details on all the inspections and then a sheet which is a summary of all pieces of PPE to make it easier to see which are in/out of date and need inspections.

    All the different sheets have long winded names to identify which piece of PPE they refer to, and when referencing cells within sheets it is becoming a pain to type 'reallylongwindedname'.$B$1 each time and would much rather refer to them as 'sheet1'.$B$1. is this possible?

    Would I then be able to drag them into a sequential list? I don't really know how to explain. Say if you have a column where A1=1, A2=2, A3=3 and you drag the bottom right hand corner 4,5,6,7,8 and so on is automatically inserted further down the column. I would like to achieve the same with referencing sheets. So I could type 'sheet1'.$B$1 in cell A1 and then drag downwards so that subsequent cells then read 'sheet2'.$B$1, 'sheet3'.$B$1, 'sheet4'.$B$1 and so on. Does this make sense? Is it possible?

    Many thanks in advance.

  2. #2
    Registered User
    Join Date
    03-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Referencing sheets with a sheet number as opposed to sheet name

    Without the use of VB, I don't think it's possible. I personally hate having more than 5 sheets in a workbook, so it's not really much of a problem for me.
    The only thing I can think of is rename/abbreviate the sheets and have the full name of the PPE within that sheet.
    Dim Prawny As Newb

  3. #3
    Registered User
    Join Date
    03-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Referencing sheets with a sheet number as opposed to sheet name

    What's VB?

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Referencing sheets with a sheet number as opposed to sheet name

    There is a way but it maybe more complicated that what you. Let me paste an example.

    abousetta

    vb is visual basic, vba is visual basic for applications, also known as macros (or a small program that can be customized and run in Office products). Its mainly used for automation or adding features that are not normally present in Office (e.g. User-defined functions)
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  5. #5
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: Referencing sheets with a sheet number as opposed to sheet name

    You might want to consider reorganizing the data. How much data pertains to one specific PPE? Can you share this workbook so I can make better recommendations?

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Referencing sheets with a sheet number as opposed to sheet name

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I created a table containing the sheet names and a number to reflect their order. In the formula I use LOOKUP to find the Sheet name that corresponds to the name I inputted in Cell D2. The formula is:

    Please Login or Register  to view this content.
    which would have been the same as writing this formula:

    Please Login or Register  to view this content.
    Last edited by abousetta; 03-14-2012 at 12:45 PM.

+ 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