+ Reply to Thread
Results 1 to 3 of 3

Use a cell value to specify the path address

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Use a cell value to specify the path address

    Dear all,

    I have a few files to link with. I want to achieve that: if I specify the file name in cell A1, then the file to be linked will also be updated with the path change. For example,

    If I specify the file name as SourceFile in cell A1, then the target path is: ='C:\[SourceFile.xlsx]Sheet1'!$A$1

    Not sure if I need to use text functions to achieve this. Thank you for help!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Use a cell value to specify the path address

    This will display the text for the target path

    ="'C:\["&A1&".xlsx]Sheet1'!$A$1"

    If you need to pull information from the target file you'll have to use the INDIRECT.EXT function
    http://www.ashishmathur.com/tag/indirect-ext/
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Use a cell value to specify the path address

    Many thanks, Ace_XL. Interestingly, there is no direct way to do this. Only have to use the adds-on function
    Last edited by BNCOXUK; 06-27-2013 at 11:38 AM.

+ 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