+ Reply to Thread
Results 1 to 7 of 7

Indirect Reference to Other files

  1. #1
    Danny Lewis
    Guest

    Indirect Reference to Other files

    Good Afternoon

    I wonder if someone out there can help me.

    Say, in cell A1 is the formula:
    ='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4

    Is it possible to change this using the INDIRECT function (or otherwise)?

    i.e. if in B1 I put
    Folder3

    Is there a formula I can put in A1 which is like the one above that
    references automatically what is in B1?

    e.g. (and I know this is wrong)
    ='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4


  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065
    Why dont you just use CONCATENATE, something like e.g.

    =CONCATENATE('A:\Folder1\',B2,'\[File1.xls]DATA')

  3. #3
    Ardus Petus
    Guest

    Re: Indirect Reference to Other files

    =INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")

    HTH
    --
    AP

    "Danny Lewis" <Danny [email protected]> a écrit dans le
    message de news: [email protected]...
    > Good Afternoon
    >
    > I wonder if someone out there can help me.
    >
    > Say, in cell A1 is the formula:
    > ='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4
    >
    > Is it possible to change this using the INDIRECT function (or otherwise)?
    >
    > i.e. if in B1 I put
    > Folder3
    >
    > Is there a formula I can put in A1 which is like the one above that
    > references automatically what is in B1?
    >
    > e.g. (and I know this is wrong)
    > ='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4
    >




  4. #4
    Danny Lewis
    Guest

    Re: Indirect Reference to Other files

    That will only come out with the text of the link

    "Special-K" wrote:

    >
    > Why dont you just use CONCATENATE, something like e.g.
    >
    > =CONCATENATE('A:\Folder1\',B2,'\[File1.xls]DATA')!$A$4
    >
    >
    > --
    > Special-K
    > ------------------------------------------------------------------------
    > Special-K's Profile: http://www.excelforum.com/member.php...fo&userid=7470
    > View this thread: http://www.excelforum.com/showthread...hreadid=561101
    >
    >


  5. #5
    Danny Lewis
    Guest

    Re: Indirect Reference to Other files

    Ardus that didn't work mate

    "Ardus Petus" wrote:

    > =INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")
    >
    > HTH
    > --
    > AP
    >
    > "Danny Lewis" <Danny [email protected]> a écrit dans le
    > message de news: [email protected]...
    > > Good Afternoon
    > >
    > > I wonder if someone out there can help me.
    > >
    > > Say, in cell A1 is the formula:
    > > ='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4
    > >
    > > Is it possible to change this using the INDIRECT function (or otherwise)?
    > >
    > > i.e. if in B1 I put
    > > Folder3
    > >
    > > Is there a formula I can put in A1 which is like the one above that
    > > references automatically what is in B1?
    > >
    > > e.g. (and I know this is wrong)
    > > ='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4
    > >

    >
    >
    >


  6. #6
    Ardus Petus
    Guest

    Re: Indirect Reference to Other files

    File1.xls must be opened.
    Otherwise, no way!

    HTH
    --
    AP

    "Danny Lewis" <[email protected]> a écrit dans le message
    de news: [email protected]...
    > Ardus that didn't work mate
    >
    > "Ardus Petus" wrote:
    >
    >> =INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")
    >>
    >> HTH
    >> --
    >> AP
    >>
    >> "Danny Lewis" <Danny [email protected]> a écrit dans le
    >> message de news: [email protected]...
    >> > Good Afternoon
    >> >
    >> > I wonder if someone out there can help me.
    >> >
    >> > Say, in cell A1 is the formula:
    >> > ='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4
    >> >
    >> > Is it possible to change this using the INDIRECT function (or
    >> > otherwise)?
    >> >
    >> > i.e. if in B1 I put
    >> > Folder3
    >> >
    >> > Is there a formula I can put in A1 which is like the one above that
    >> > references automatically what is in B1?
    >> >
    >> > e.g. (and I know this is wrong)
    >> > ='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4
    >> >

    >>
    >>
    >>




  7. #7
    Danny Lewis
    Guest

    Re: Indirect Reference to Other files

    Ahhh I opened the file and it worked. That's excellent thanks very much.

    "Ardus Petus" wrote:

    > File1.xls must be opened.
    > Otherwise, no way!
    >
    > HTH
    > --
    > AP
    >
    > "Danny Lewis" <[email protected]> a écrit dans le message
    > de news: [email protected]...
    > > Ardus that didn't work mate
    > >
    > > "Ardus Petus" wrote:
    > >
    > >> =INDIRECT("'A:\Folder1\Folder2\"&B1&"\[File1.xls]DATA'!$a$4")
    > >>
    > >> HTH
    > >> --
    > >> AP
    > >>
    > >> "Danny Lewis" <Danny [email protected]> a écrit dans le
    > >> message de news: [email protected]...
    > >> > Good Afternoon
    > >> >
    > >> > I wonder if someone out there can help me.
    > >> >
    > >> > Say, in cell A1 is the formula:
    > >> > ='A:\Folder1\Folder2\[File1.xls]DATA'!$A$4
    > >> >
    > >> > Is it possible to change this using the INDIRECT function (or
    > >> > otherwise)?
    > >> >
    > >> > i.e. if in B1 I put
    > >> > Folder3
    > >> >
    > >> > Is there a formula I can put in A1 which is like the one above that
    > >> > references automatically what is in B1?
    > >> >
    > >> > e.g. (and I know this is wrong)
    > >> > ='A:\Folder1\INDIRECT(B2)\[File1.xls]DATA'!$A$4
    > >> >
    > >>
    > >>
    > >>

    >
    >
    >


+ 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