+ Reply to Thread
Results 1 to 2 of 2

Formula for reading data out of several files

  1. #1
    Registered User
    Join Date
    05-07-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Formula for reading data out of several files

    Hello

    I am trying to create a link that is changed in relation to my combo box. I can get so far as to define the file name incorporating the outcome, however excel will not take this into a file path.

    Please bear with me as i am not the most experienced in either posting or excel.

    I have attached the file. Please see for example the link in cell D5, I wish for excel to use cell I2 in the path name so that the link is changed corresponding to the combo box.

    It seems that this may not be possible and the only work around I know of would require the target file to be open on the PC. I wish to avoid this as eventually the file will be quite large and it would be quicker simply to manually update links.

    Any help or solutions would be much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula for reading data out of several files

    A few quick pointers on the above:

    1 - you can't use "native" Formulae for this if the intention is such that Target remains closed

    2 - you can't use SUMIF if the Target remains closed (you would need to revert to an Array / SUMPRODUCT alternative)

    Realistically you're looking at using VBA to re-write the links in your spreadsheet when the combobox value changes (and or other alternatives - ADO perhaps) - how viable the VBA route will prove to be is debatable.

    Other alternatives would be to use tools developed by others, eg:

    INDIRECT.EXT (part of the morefunc.xll add-in developed by Laurent Longre)

    Harlan Grove's PULL function

    If you google / search the forum on the above you will find a few threads that discuss the above in more depth.

+ 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