+ Reply to Thread
Results 1 to 3 of 3

using worksheet name

  1. #1
    Registered User
    Join Date
    04-15-2006
    Posts
    5

    using worksheet name

    Is there a way to use the name of a worksheet in a formula?

    I would like to use the 'if' function and have one of the criteria be the name of the worksheet.

    Thanks

  2. #2
    Chip Pearson
    Guest

    Re: using worksheet name

    The following formula will return the name of the worksheet on
    which it appears.

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

    Note that the file must have been saved to disk for the formula
    to work. Also, leave the "filename" text intact -- do not
    substitute the actual file name


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com




    "Deborah J Doyle"
    <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Is there a way to use the name of a worksheet in a formula?
    >
    > I would like to use the 'if' function and have one of the
    > criteria be
    > the name of the worksheet.
    >
    > Thanks
    >
    >
    > --
    > Deborah J Doyle
    > ------------------------------------------------------------------------
    > Deborah J Doyle's Profile:
    > http://www.excelforum.com/member.php...o&userid=33526
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=533220
    >




  3. #3
    Registered User
    Join Date
    04-15-2006
    Posts
    5

    using worksheet name

    THANKS!! the formula worked perfectly!

+ 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