+ Reply to Thread
Results 1 to 6 of 6

Need to search Book 2 for matching value and return a result in Book 1

  1. #1
    Registered User
    Join Date
    08-22-2018
    Location
    Omaha, Nebraska
    MS-Off Ver
    2016
    Posts
    6

    Need to search Book 2 for matching value and return a result in Book 1

    Hello,

    I'm new to excel and have been tasked with importing thousands of matching values...
    I know my example will seem pointless, but obviously it is part of a much bigger picture.

    I have 2 workbooks.
    Book 2 has a Part number and a vendor.
    Book 1 only has a list of part numbers...

    I need a formula to search book 2 for the matching part number and return the text in the vendor column into Book 1.

    FYI: Book 2 has approximately 20,000 part numbers. While Book 1 has only 5,000

    I attached a rudimentary example.

    Thank you for any help!
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need to search Book 2 for matching value and return a result in Book 1

    Try this

    =VLOOKUP(A2,[Book2]Sheet1!A2:C8,3,0)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    08-22-2018
    Location
    Omaha, Nebraska
    MS-Off Ver
    2016
    Posts
    6

    Re: Need to search Book 2 for matching value and return a result in Book 1

    Thank you for the quick reply. I tried to adjust the numbers to fix my actual books... and failed.

    Let me post more accurate representations of my 2 books.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need to search Book 2 for matching value and return a result in Book 1

    How about

    =INDEX([Book2.xlsx]Sheet1!$F$2:$F$10,MATCH(A2,[Book2.xlsx]Sheet1!$C$2:$C$10,0))

  5. #5
    Registered User
    Join Date
    08-22-2018
    Location
    Omaha, Nebraska
    MS-Off Ver
    2016
    Posts
    6

    Re: Need to search Book 2 for matching value and return a result in Book 1

    I couldn't get it to work using different workbooks... so I copied the relevant sheet into the same book and it works!

    Thanks

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need to search Book 2 for matching value and return a result in Book 1

    Well glad you got that to work, but if you use the same concept and now move the sheet to its own workbook, the formula should follow.

    You are very welcome and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Return first search result from Google
    By anthony_91 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2022, 04:38 PM
  2. [SOLVED] Search a row for a string and return result
    By Margate in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-30-2019, 08:08 AM
  3. VBA - search books for value, return row to current book - please help
    By mrshl9898 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2015, 01:11 AM
  4. [SOLVED] search a row & return result
    By dan66656 in forum Excel General
    Replies: 4
    Last Post: 05-08-2015, 07:56 AM
  5. how to use VBA to search and return search result in the user form
    By pearlynie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2013, 07:58 AM
  6. Replies: 3
    Last Post: 04-15-2012, 11:15 PM
  7. Search for multiple criteria then return result
    By ctrapper in forum Excel General
    Replies: 7
    Last Post: 03-15-2011, 09:03 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