+ Reply to Thread
Results 1 to 6 of 6

Worksheet Name in Cell

  1. #1
    Registered User
    Join Date
    03-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Thumbs up Worksheet Name in Cell

    Hello,

    I would be grateful for some assistance.

    I have a workbook with over 50 worksheets with diffent names. In each worksheet's cell A2 I'd like to place a formula which returns the worksheet name.

    I'm using Office 2010.

    Thanks in advance.
    Last edited by JonUK01; 11-27-2011 at 07:03 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Worksheet Name in Cell

    Try this

    Please Login or Register  to view this content.

  3. #3
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Worksheet Name in Cell

    Put this in A2:

    =MID(CELL("filename",A1),FIND("]",CELL("filename"))+1,255)

    You can substitute A1 for any cell that does not contain an error.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  4. #4
    Registered User
    Join Date
    03-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Worksheet Name in Cell

    Thanks for the responses.

    JieJenn - your option works fine, but how do i get it to auto update if I change the sheet name? Each sheet is for a week's info, and the sheet name is a date in that week, so next year I'll copy the file and change the dates accordingly.

    davegugg - I seem to get an error "#value!". Can't seem to find a cell reference that works correctly. Obviously I'm doing something wrong?

  5. #5
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Worksheet Name in Cell

    The formula should work as long as the workbook has been saved.

  6. #6
    Registered User
    Join Date
    03-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Worksheet Name in Cell

    Hi there,

    davegugg - I've checked it and it seems to be working fine now and it auto-updates!! Not sure what I was doing wrong. Anyway, thanks for your help.

+ 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