+ Reply to Thread
Results 1 to 5 of 5

Vlookup not working with closed files

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    196

    Vlookup not working with closed files

    Hi.

    I have a spreadsheet (destination) that in various places links to ten other spreadsheets (sources) via the VLOOKUP function.

    FOUR of those ten work fine. The sheet receives the values from the sources via the VLOOKUP without opening the source files.
    SIX of the VLOOKUPS will not work unless I open the source files. I can immediately close them again, but that isn't convienient and I am sure sucks up the computers limited resources.

    This is one of the VLOOKUP formulas that work just fine. I DO NOT have to open the source to see the updated data in the destination file.

    Please Login or Register  to view this content.
    This is one of the VLOOKUP formulas that do not work unless I open the source file after opening the destination file.

    Please Login or Register  to view this content.
    I'm sort of bummed. I learned all about index/match and used it in the second formulas place. Then discovered that the source had to be open. So I rebuilt the formulas with vlookups. Now I have somehow messed things up.

    Thanks in Advance.

  2. #2
    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
    53,051

    Re: Vlookup not working with closed files

    INDEX/MATCH, like VLOOKUP, should have no problem reading from closed files.

    If those are the same exact formulas that you are using, try removing the IFERROR() from teh 2nd formula and adding it to the 1st formula (I dont see how this would make a difference, but try)
    Are you sure the path is correct for the 2nd 1? (grasping at straws here, I see no obvious reason for it not to work)
    Try to manually recreate the 2nd formula, see if it looks the same

    1. =VLOOKUP(A2,'C:\Users\billy.ray\Desktop\[TTT.xlsx]Summary'!$A$1:$F$649,4,FALSE)
    2. =VLOOKUP(A7,'C:\Users\billy.ray\Desktop\2015\[PARTS 30 DAYS_Crosstab.xlsx]PARTS 30 DAYS_Crossta'!$A$2:$B$200,2,FALSE)
    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

  3. #3
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    196

    Re: Vlookup not working with closed files

    Quote Originally Posted by FDibbins View Post
    INDEX/MATCH, like VLOOKUP, should have no problem reading from closed files.
    It never did for me. A google search took me to a page that stated index/match only works with the data source file open.

    Quote Originally Posted by FDibbins View Post

    If those are the same exact formulas that you are using, try removing the IFERROR() from teh 2nd formula and adding it to the 1st formula (I dont see how this would make a difference, but try)
    Are you sure the path is correct for the 2nd 1? (grasping at straws here,
    I took out and added the iferror() portion and nothing changed. The path is correct since the formula works fine once the source files are opened.

    Another question: How do you tell how many instances of excel are going on? I did read that if there was more than one instance open then the lookup would fail until the file was opened in the other instance.

    I boot up then double click on the destination file. It opens. The rest of the day I either right click on the excel icon at the taskbar on my desktop and select a file, or I do a cntrl+O if I am working in the file. So, to my laymans brain that sounds like ONE instance of excel. Is that right?

    I appreciate the time and thought. I can live with it. I just don't like being confused....

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup not working with closed files

    I agree with Ford, to the best of my knowledge, both VLOOKUP and INDEX/MATCH work just fine accross closed workbooks.

    If you have 10 of them, 4 DO work, 6 DON'T, logic should tell us that it's not simply because vlookup doesn't work on a closed workbook.
    If that was the reason, 0 of them would have worked.

    There must be another reason.

    Can you clarify what "doesn't work" means ?
    Do you get an error? What error?
    Do you get the wrong result? What result DO you get? And in what way is that different from the result you expected?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlookup not working with closed files

    I remember running into this issue before.

    Tested in Excel 2002.

    If the lookup table has more than 16,375 rows of actual data then I get this if the lookup value is located below the 16,375th row:

    Formula result = #N/A

    Message box pops up: Excel can not complete this task with available resources...

    If the lookup value is located before the 16,376th row it works as expected.
    Last edited by Tony Valko; 03-28-2016 at 05:19 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Link to closed workbook not working
    By bvercher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2015, 04:09 PM
  2. [SOLVED] Save/Closed only macro related files and leave unrelated files open in excel?
    By rdowney79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2013, 04:17 PM
  3. printing pdf of 218 closed xls files - (2) ?'s
    By jwright650 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2012, 02:52 PM
  4. Vlookup closed files
    By JackieRose in forum Excel General
    Replies: 7
    Last Post: 04-22-2011, 09:24 AM
  5. UDF referencing closed workbook not working
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-25-2010, 09:17 PM
  6. Get data from several closed xls files
    By OC0nn0r in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-30-2008, 02:23 AM
  7. closed files
    By dh13134 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2005, 06:05 PM

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