+ Reply to Thread
Results 1 to 5 of 5

Vlookup to another workbook?

  1. #1
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Vlookup to another workbook?

    Hi, is there any reason that the following code should not work:

    Please Login or Register  to view this content.
    I'm kind of stumped on what could be the issue.

    Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,171

    Re: Vlookup to another workbook?

    Your VLOOKUP range is in a single column C12:C13 but you are telling VLOOKUP to retrieve the answer from the second column. This probably results in a runtime error, or a #VALUE! error in the worksheet.

    What are you seeing that is different than what you expected?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    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 to another workbook?

    why not just use a regular vlookup, and not even bother with VBA?
    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

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,171

    Re: Vlookup to another workbook?

    Quote Originally Posted by FDibbins View Post
    why not just use a regular vlookup, and not even bother with VBA?
    Y'know, that is an excellent point. Both sides of your assignment are constants. Can't imagine why this needs to be done in VBA.

  5. #5
    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 to another workbook?

    Thanks Jeff, not being VBA savy, I am always looking for formula way

+ 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. Vlookup between Master Workbook and Active Workbook
    By pnasir in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2017, 06:13 PM
  2. Reference an unopened workbook to vlookup date into the current workbook
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2016, 07:03 AM
  3. Access external Excel workbook from within another workbook via VBA with VLOOKUP
    By Josh2015 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2015, 11:08 AM
  4. [SOLVED] VLookup on data from one workbook from a named range on a different workbook
    By Phixer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2014, 08:50 AM
  5. [SOLVED] Vlookup from one workbook to another workbook with multipule sheets
    By sally.simpkin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2013, 06:22 AM
  6. Excel: match, vlookup in other workbook, copy and paste in old workbook.
    By BeefGir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2012, 01:26 PM
  7. vlookup for another workbook
    By lavi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2010, 01:02 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