+ Reply to Thread
Results 1 to 9 of 9

File Name with no Sheet Name

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    40

    File Name with no Sheet Name

    how do i insert the file name only...cell=("filename") is good but i only want the file name not the sheet number

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

    Re: File Name with no Sheet Name

    See if this works

    =MID(CELL("filename"),FIND("[",CELL("filename"))+1,FIND("]",CELL("filename"))-FIND("[",CELL("filename"))-1)

  3. #3
    Registered User
    Join Date
    12-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: File Name with no Sheet Name

    I am sorry but i still need the full path of the file.

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

    Re: File Name with no Sheet Name

    =LEFT(CELL("filename"),FIND("]",H26))

  5. #5
    Registered User
    Join Date
    12-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: File Name with no Sheet Name

    I am getting an #value error ?
    Thanks again

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

    Re: File Name with no Sheet Name

    Save your workbook first. If a workbook is not saved, it has no path directory.

  7. #7
    Registered User
    Join Date
    12-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: File Name with no Sheet Name

    Sorry still same error...what does the H26 stand for?
    the cell to be reading on my workbook sheet is D5 to D7

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

    Re: File Name with no Sheet Name

    It was a typo. The formula should be =LEFT(CELL("filename"),FIND("]",CELL("filename"))

  9. #9
    Registered User
    Join Date
    12-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: File Name with no Sheet Name

    That was it
    thank you so much 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)

Similar Threads

  1. Replies: 0
    Last Post: 01-21-2014, 10:52 AM
  2. Copy / Paste Values Only one sheet into another file from a multi sheet excel file
    By srisri201012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2013, 12:56 PM
  3. Replies: 5
    Last Post: 01-09-2013, 04:06 AM
  4. Sheet A in file X to Sheet B in file Y when both files are opened by excel.
    By sunheroj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2012, 09:52 AM
  5. Replies: 1
    Last Post: 01-17-2012, 06:43 AM

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