+ Reply to Thread
Results 1 to 6 of 6

Referencing external file with Index/Match functions

  1. #1
    Registered User
    Join Date
    09-15-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    32

    Referencing external file with Index/Match functions

    I am trying to run a simple Index/Match query in one excel file where it indexes from an external file. Now the file gets renamed every other day. So I want a way to refer to "any" or * file in a particular folder. Here's the query I have right now:

    Please Login or Register  to view this content.
    Now you can guess that the date is what changes about the filename. The old file gets moved out of the folder so at all times there's only one file in that folder. All I need to do is refer to just that one file somehow and be able to do that without having to change the date in my query every day.

    Is there a way I could do something [*.xls] instead of using the complete filename?

    Please let me know if this doesn't make sense. Thanks for your help.
    Last edited by NBVC; 09-20-2010 at 08:58 PM.

  2. #2
    Registered User
    Join Date
    09-15-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Referencing external file with Index/Match functions

    bump! The first of I imagine many.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Referencing external file with Index/Match functions

    Once you start playing with "indirectly" referring to a outside workbook.. you will need to introduce the INDIRECT() function.. but the catch is that it only works if the other workbook is opened.

    There is a free addin called Morefunc.xll that has a INDIRECT.EXT function that works with closed workbooks and it would be applied like this:

    Please Login or Register  to view this content.
    Where you would enter the date in cell A1 of the active workbook that corresponds to the date in the file name to get.

    Note: You may need to change the TEXT(A1,"dd-mm-yy") parts to TEXT(A1,"mm-dd-yy") depending on how you use dates.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    09-15-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Referencing external file with Index/Match functions

    Now would this still work if this spreadsheet was uploaded on a Sharepoint site?

    And would it still display the matched items on PCs that do not have this excel add on?

    Thanks
    Last edited by NBVC; 09-16-2010 at 04:24 PM.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Referencing external file with Index/Match functions

    About the Sharepoint... I do not know.. I don't have that experience with Sharepoint.

    You can embed the Morefunc.xll addin into your XL2003 workbook (it will end up in Tools|Morefunc), and then it will be available to the other users so they don't need to physically install it.

    Please don't use the Quote button.. Use the Reply button. Thanks.

  6. #6
    Registered User
    Join Date
    09-15-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Referencing external file with Index/Match functions

    Now if I wanted to forget about the whole date thing and simply use asterisk to refer to the excel file since its the only file in that folder, how would I do that?

    Thanks

+ 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