+ Reply to Thread
Results 1 to 4 of 4

File Path - Concatenate

  1. #1
    Registered User
    Join Date
    10-22-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    3

    File Path - Concatenate

    I am using the concatenate function to create a filepath,

    using values in A1, A2 and A3 within the path to determine the location of the excel workbook i am referencing to.

    this function gives me the correct file name as a string, how can i then use this to take data from a cell within this filepath, entering it into a cell?

    =CONCATENATE("P:\",A1,"\",A2," - ",A3,"MRS.xls]Spine'!$B$8")
    gives me the string for the filepath

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: File Path - Concatenate

    enter the formula into a cell, e.g. B1
    =INDIRECT(B1)
    You might have to have the file you're referencing open, I'm not sure.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    10-10-2015
    Location
    Houston
    MS-Off Ver
    2013
    Posts
    26

    Re: File Path - Concatenate

    Try =INDIRECT(CONCATENATE("'[P:\",A1,"\",A2," - ",A3,"MRS.xls]Spine'!$B$8"))

  4. #4
    Registered User
    Join Date
    10-22-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    3

    Re: File Path - Concatenate

    Yep have done, now working fine, some grammatical errors in relation to the filename and missing ' before the P:/,

    thanks for the feedback

+ 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. Choosing folder path (instead of file path) in VBA
    By sminter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-23-2014, 08:50 PM
  2. Insert CONCATENATE-generated file path into IF formula
    By feclips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2013, 04:35 AM
  3. Replies: 0
    Last Post: 01-27-2013, 12:13 PM
  4. [SOLVED] Save As Dialog Box - Default Path and File Name, User Selects Sub Folder from Default Path
    By christenprochaska in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2012, 05:17 PM
  5. Specified folder path to select file path
    By JayEmTee91 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2012, 10:38 AM
  6. Replies: 7
    Last Post: 10-09-2009, 10:10 AM
  7. Use String Variables in File Path and create path if not existing
    By JanBang in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-26-2007, 09:04 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