+ Reply to Thread
Results 1 to 6 of 6

Using Index and Match functions on a closed workbook

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using Index and Match functions on a closed workbook

    Hello

    I am trying to run a function to gather data from a worksheet in a closed workbook. I am using the Index and Match functions. I have read that some functions can pull data from closed workbooks and some functions cannot. I would like some clarity on this. The 2 functions I am using are Index and Match and they return a REF error when the workbook is not open.

    I am using Excel 2010 and here is the somewhat lengthy formula (mostly lengthy due to the file location reference). I am using Ctrl-Shift-Enter and the formula does work when the Parts - Mast List.xlsx file is open but not while it is closed.

    {=INDEX('W:\Purchasing\Databases\Parts - Master List.xlsx'!Parts_Table[#Data],MATCH(1, (E42='W:\Purchasing\Databases\Parts - Master List.xlsx'!Parts_Table[Part
    Number]) * (D42='W:\Purchasing\Databases\Parts - Master List.xlsx'!Parts_Table[Supplier]),0),MATCH("*Price",'W:\Purchasing\Databases\Parts - Master List.xlsx'!Parts_Table[#Headers],0))}

    Thank you for your help.

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

    Re: Using Index and Match functions on a closed workbook

    I think it is the table referencing... can you change to actual ranges instead?
    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.

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using Index and Match functions on a closed workbook

    Thank you very much. Using a specific range reference does work. Using a table reference is my preference because the table changes but I will try to work with that limitation. Does anyone understand why table references don't work when the sheet being referenced is closed?

    Cheers!

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

    Re: Using Index and Match functions on a closed workbook

    Similar to Data Validation, Conditional Formatting, you can only use "names" to reference items in the workbook... and if you work with outside references, then that workbook must remain open.

  5. #5
    Registered User
    Join Date
    02-23-2015
    Location
    texas
    MS-Off Ver
    MAC OSX
    Posts
    30

    Re: Using Index and Match functions on a closed workbook

    What if you simply gave someone a folder with both files (the open and the closed)?

    Would you still need to put the entire path name, or can you reference just that portion of the path that is one level up? i.e., the folder in which you are sitting?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Using Index and Match functions on a closed workbook

    Jocamo, you probably did not notice that this thread is over 5 years old now?

    If you are asking a question of your own, please start your own thread (reference this thread if you think it is valid)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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