+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP problem

  1. #1
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264

    VLOOKUP problem

    I am in the process of developing a spreadsheet that pulls values through from other workbooks using VLOOKUP.

    I have done this in the past and it works fine irrespective of whether the target workbook is open or not.

    On this particular workbook, which uses INDIRECT to generate the target, the VLOOKUP fails if the target workbook is not open giving a REF! error.

    I have also tried substituting the INDIRECT function for a direct call and get an N/A error.

    I need this to work without the target workbook being open - any ideas why this not working in this instance?

    Ed

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Working with closed workbooks can only be solved in 3 ways ...
    Take a look at the various explanations ...
    http://www.dailydoseofexcel.com/arch...sed-workbooks/
    HTH
    Carim


    Top Excel Links

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    See previous post from Carim

    http://www.excelforum.com/showthread...losed+workbook
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Thanks for that, Carim and Old Chippy.

    I have tried the 'Pull' function Carim pointed me to. Being a bit of a VBA virgin I'm not sure why this hasn't worked either - I have pasted it into the sheet tab but I get a #Name? error

    =IF(VLOOKUP(B5,pull($D$1),5,FALSE)="yes","Yes","No")

    (D1 contains the full path and file name) and is derived from another vlookup.

    I don't understand why a direct reference i.e full path isn't working though. This is the method I have used in the past and it has been fine.

    Ed

  5. #5
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Thanks for the attachment, Carim, I seem to have got it all sorted now.

    I think my situation was complicated by IT network problems this end.

    Regards,

    Ed

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad your problem is fixed

    Thanks for the feedback

+ 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