+ Reply to Thread
Results 1 to 4 of 4

How to make it work "='C:\Users\DK-01\Desktop\["& A1 &".xlsx]Sheet1'!$A$1"

  1. #1
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    How to make it work "='C:\Users\DK-01\Desktop\["& A1 &".xlsx]Sheet1'!$A$1"

    The formula below can get the value of A1 of File A and File B:
    ='C:\Users\DK-01\Desktop\[File A.xlsx]Sheet1'!$A$1
    ='C:\Users\DK-01\Desktop\[File B.xlsx]Sheet1'!$A$1

    Now the value of Cell A1 and A2 is File A and File B respectively.

    How to revise the dynamic link at Cell B1 and B2 to get the value of cell A1 at File A and B:

    "='C:\Users\DK-01\Desktop\["&A1&".xlsx]Sheet1'!$A$1"
    "='C:\Users\DK-01\Desktop\["&B1&".xlsx]Sheet1'!$A$1"

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: How to make it work "='C:\Users\DK-01\Desktop\["& A1 &".xlsx]Sheet1'!$A$1"

    Have you tried:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    Re: How to make it work "='C:\Users\DK-01\Desktop\["& A1 &".xlsx]Sheet1'!$A$1"

    Dear Kaper,

    Cell B1 can get the value of File A1 if File A1 is open.
    However when File A2 is open and File A1 is closed, only cell B2 can get the value and B1 become #REF!


    Please note that I have tried to get link say at cell D1,

    the formula at D1 is below when File A1 is open:
    ='[File A1.xlsx]Sheet1'!$A$1

    the formula at D1 is below when File A1 is closed:
    ='C:\Users\DK-01\Desktop\[File A1.xlsx]Sheet1'!$A$1

  4. #4
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    Re: How to make it work "='C:\Users\DK-01\Desktop\["& A1 &".xlsx]Sheet1'!$A$1"

    Dear Kaper,

    If my excel file, that use to extract value of A1 at File A1 and A2, is at different directory, say

    C:\Users\DK-01\Desktop\Scan

    then the value will not become #Ref.

    However, the file File A1 and File A2 should be open once; and the extracted value will become #Ref when my excel file save, exit and open again.

+ 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] Make "WeekdayName" Function Work With "dd/mm/yyyy" Format
    By KMVKMVKMV in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-30-2019, 02:30 PM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. [SOLVED] Link excel file to workbook "=IF(ISBLANK('Sheet1!A1),"",'Sheet1!A1) " is this reliable?
    By bala04msw in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-29-2016, 05:39 AM
  4. Replies: 3
    Last Post: 01-02-2014, 02:15 PM
  5. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  6. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM
  7. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 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