reference a cell by the path of another cell

Anonymous
2013-02-22T09:41:54+00:00

Hi, 

I would like to know if it is possible to reference a cell value like the below:

Sheet1!A1 = C:\abc[abc.xlsx]fileTab

Sheet2!B1 = "'"&Sheet1!A1&"'!B1"

Is there any formula I can make use to retrieve the data from another closed workbook, which its path specified in cell Sheet1!A1 ?

Currently, the output is the path in text, but I need the value.

Many Thanks,

Eddy

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Anonymous
    2013-02-22T19:31:31+00:00

    As you are likely aware, the INDIRECT() function can be used to construct/convert a text based representation of a cell or sheet!cell reference to a usable cell/range reference. However, this native function does not work with external references.

    There is a widely known set of Excel functions in the free MoreFunc Excel Add-in XLA that contains a derived INDIRECT.EXT() function that will grant the same construction/conversion to an external address and there is a version compatible with Excel 2010.

    Be very careful of downloading this set of library functions as there are fake/hacked versions cropping up around the Internet. I believe the following is safe for version 5.05.

    MoreFunc version 5.05 from FreewareFiles.com

    For the record, I personally feel that the INDIRECT.EXT() should only be used in absolute necessity where no other native method would do. It should not be used as blanket 'fix-all' to poor worksheet/workbook design.

    0 comments No comments
  2. Ashish Mathur 101K Reputation points Volunteer Moderator
    2013-02-23T03:38:15+00:00
    0 comments No comments
  3. Anonymous
    2013-02-25T02:00:16+00:00

    Hi,

     

    Try this

     

    http://www.ashishmathur.com/extract-data-from-multiple-cells-of-closed-excel-files/

     

    Hope this helps.

    Hi, Ashish Mathur

    thanks so much for your help.

    Since I am required not to hard code the path in the INDIRECT function, I would like to do something like  the below:

    =INDIRECT("'"&Sheet1!A1)

    But it seems it is not working when I write it like this, just wondering if I can have a workaround for this instead of writing macro.

    Thanks again.

    0 comments No comments
  4. Anonymous
    2013-02-25T02:02:00+00:00

    As you are likely aware, the INDIRECT() function can be used to construct/convert a text based representation of a cell or sheet!cell reference to a usable cell/range reference. However, this native function does not work with external references.

    There is a widely known set of Excel functions in the free MoreFunc Excel Add-in XLA that contains a derived INDIRECT.EXT() function that will grant the same construction/conversion to an external address and there is a version compatible with Excel 2010.

    Be very careful of downloading this set of library functions as there are fake/hacked versions cropping up around the Internet. I believe the following is safe for version 5.05.

    MoreFunc version 5.05 from FreewareFiles.com

    For the record, I personally feel that the INDIRECT.EXT() should only be used in absolute necessity where no other native method would do. It should not be used as blanket 'fix-all' to poor worksheet/workbook design.

    Thanks so much Jeeped. But I don't have the access to install any things in the PC.

    0 comments No comments
  5. Ashish Mathur 101K Reputation points Volunteer Moderator
    2013-02-25T02:14:39+00:00

    Hi,

    The INDIRECT() function will not extract data from a closed workbook.  To do so, you will have to use the INDIRECT.EXT function which is available in the Morefunc addin (can be downloaded from the link which I shared with you in my earlier post).

    Once you have downloaded and installed the addin, you can use the INDIRECT.EXT function to extract data from a closed file.

    1 person found this answer helpful.
    0 comments No comments