+ Reply to Thread
Results 1 to 7 of 7

Return Tab Name into a specific cell

  1. #1
    Registered User
    Join Date
    12-10-2017
    Location
    Queanbeyan, NSW Australia
    MS-Off Ver
    2016
    Posts
    26

    Return Tab Name into a specific cell

    I am trying to find a solution to return the tab name of a sheet within a workbook to a particular cell.

    What I have found is the following formula:

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

    The above formula works fine until I put my file onto our server. The issue I have encountered is the naming of our particular job files (e.g. ..../Current Jobs/1234 [4321] - Job Description) the first number "1234" is the job number, the second number "[4321]" is the quote number followed by the "Job Description".

    Now because we name our files this way and reference our quote number in "[]" square brackets it causes this formula to return all information after the first "]" closed square brackets.

    Is there a different formula I could use or a way to modify the one that I am already using.

    Thanks in advance.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Return Tab Name into a specific cell

    You will need to find the second occurrence of the square bracket.

    See if this link helps you;

    https://www.extendoffice.com/documen...ccurrence.html

  3. #3
    Registered User
    Join Date
    12-10-2017
    Location
    Queanbeyan, NSW Australia
    MS-Off Ver
    2016
    Posts
    26

    Re: Return Tab Name into a specific cell

    Thanks for the reply.

    I have followed the link and this is what I came up with:

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

    but unfortunately is does not like that, I have obviously done it incorrectly.

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Return Tab Name into a specific cell

    Can you use square brackets in a filename?

  5. #5
    Registered User
    Join Date
    12-10-2017
    Location
    Queanbeyan, NSW Australia
    MS-Off Ver
    2016
    Posts
    26

    Re: Return Tab Name into a specific cell

    Not in the file name but you can with folder names, hence my issue....

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Return Tab Name into a specific cell

    Try this;

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-10-2017
    Location
    Queanbeyan, NSW Australia
    MS-Off Ver
    2016
    Posts
    26

    Re: Return Tab Name into a specific cell

    Worked a charm, thank you so much.

+ 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. [SOLVED] How to return a sum only if a specific cell contains data, else return blank cell
    By Teeay5324 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-03-2017, 11:18 AM
  2. [SOLVED] Return specific cell from specific row that matches logic
    By KDDB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2016, 06:10 AM
  3. Return specific value IF specific text in cell
    By scones in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-14-2015, 01:18 AM
  4. If Cells Equals "1" Return Specific Cell, If not Return Nothing
    By seannydj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2014, 12:15 PM
  5. Replies: 4
    Last Post: 08-15-2013, 09:50 AM
  6. Replies: 3
    Last Post: 06-20-2012, 07:16 AM
  7. Replies: 1
    Last Post: 06-05-2012, 02:22 PM

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