+ Reply to Thread
Results 1 to 8 of 8

Lookup to other workbook not working

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Lookup to other workbook not working

    Hello. I created a lookup to another workbook but it isn't working and I can't tell why. Spreadsheet attached with name of workbook and the formula that I'm using. Thanks.
    Attached Files Attached Files

  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,048

    Re: Lookup to other workbook not working

    INDIRECT() only works on open workbooks.

    If having the other WB open is not an option, take a look at the More-func addin
    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
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: Lookup to other workbook not working

    The workbook is open. In the text box, I have the reference to the open formula and what that looks like and then in the cell above I have my formula that seems like it matches but it's throwing a #Ref error.

  4. #4
    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,048

    Re: Lookup to other workbook not working

    I can see nothing glaringly wrong with your formula. Try breaking it down a few steps into it's component parts.

    =INDIRECT("'[Management Book "&E$3&".xlsx]Consolidation-F'!$A$7:$C$340") will return a error because (I think) you have a range where a songle cell is expected

    So, try just...
    =VLOOKUP($A5,INDIRECT("'[Management Book "&E$3&".xlsx]Consolidation-F'!$A$7:$C$340"),2,0)
    See if that returns what you expect

    Make sure that the text in E3 matches exactly what the file contains

    If you still have a problem, upload a small version of the other file

  5. #5
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: Lookup to other workbook not working

    This is the worksheet with all data cleared.I'll try your recommendations as well.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: Lookup to other workbook not working

    I didn't really understand your explanation about the single cell. Even if you put in the vlookup, the indirect is still looking at a range (it's just within the vlookup). Thanks for your help.

  7. #7
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: Lookup to other workbook not working

    Figured it out. My range wasn't range correct for the match. Stupidest thing ever haha. Still interested in to why the indirect would return a value error unless it's used in vlookup. Thanks.

  8. #8
    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,048

    Re: Lookup to other workbook not working

    Still interested in to why the indirect would return a value error unless it's used in vlookup.
    because, essentially, you are putting this into a cell =$A$7:$C$340

    you are welcome, thanks for the rep

+ 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. [SOLVED] Help! Copy row from one workbook and paste into last row of another workbook not working
    By Jo2710 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2014, 05:24 PM
  2. [SOLVED] Want auto-gen number in template workbook to stop working when saved to normal workbook
    By tjamestx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2014, 02:56 PM
  3. [SOLVED] Vba code working in workbook module but not working from personal.xlb
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-19-2014, 05:47 AM
  4. Replies: 0
    Last Post: 05-01-2012, 05:25 AM
  5. lookup not working
    By dougmorgan in forum Excel General
    Replies: 7
    Last Post: 08-22-2010, 05:30 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