+ Reply to Thread
Results 1 to 5 of 5

Display a full file path name in a specific cell

Hybrid View

  1. #1
    Registered User
    Join Date
    03-20-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    56

    Display a full file path name in a specific cell

    All,

    I have a need to display the full file path name of a file into a given cell in a spreadsheet I am constructing. Whilst I know you can place it in the footer I was wanting it in a particular cell in a spreadsheet so that it can later be copied into a job ticket by an MI system

    Any help as ever is appreciated

    Best regards,

    David
    Last edited by David_S_Walker; 01-06-2011 at 11:19 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Display a full file path name in a specific cell

    Try

    =SUBSTITUTE(LEFT(CELL("filename"),FIND("]",CELL("filename"))-1),"[","")
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-20-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Display a full file path name in a specific cell

    Quote Originally Posted by royUK View Post
    Try

    =SUBSTITUTE(LEFT(CELL("filename"),FIND("]",CELL("filename"))-1),"[","")
    Thanks but maybe I need to be a bit more explicit. It is the path/location name (C:\david\documents\...etc) I am after which I want Excel to "discover" and then display into a given cell

    Hopefully that means something to somebody?

    Best regards,

    David

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Display a full file path name in a specific cell

    How about just:

    =CELL("filename",$A$1)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    03-20-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Display a full file path name in a specific cell

    Quote Originally Posted by NBVC View Post
    How about just:

    =CELL("filename",$A$1)
    That works!

    ...For now anyway

    I may have another question or two!

    Best regards,

    David

+ 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