+ Reply to Thread
Results 1 to 8 of 8

Vlookup multiple values within the same range

  1. #1
    Registered User
    Join Date
    08-29-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    13

    Vlookup multiple values within the same range

    Greetings Forum,

    My name is Luis and i am having some difficulties with a vlookup function. I would like to create a vlookup in cell a4 (sheet1) where it is looking up values a2 & a3 in sheet 2. I tried creating a vlookup with a choose function, iferror but kept getting an error. Any help is greatly appreciated. Thank you


    1.PNG
    2.PNG

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Vlookup multiple values within the same range

    What is the expected result: 51320 isn't in the list shown.

  3. #3
    Registered User
    Join Date
    08-29-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    13
    Quote Originally Posted by JohnTopley View Post
    What is the expected result: 51320 isn't in the list shown.
    Hi john- thank you for the prompt reply. I need the function to lookup both of the values and only output one of the correct matches which in this case is 1. The reports sometime provide a long or short code. I don't need them to add up, I just need to derive the unique value from the range.

  4. #4
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Vlookup multiple values within the same range

    Not sure if this is what you're looking for...but

    =VLOOKUP(Sheet2!A2,Sheet2!A2:B9,1)

    Just copy it down from whatever column you want to use it in

  5. #5
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: Vlookup multiple values within the same range

    I think what you want in A4 is
    Please Login or Register  to view this content.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Vlookup multiple values within the same range

    If jjhayes has NOT got it right... but I think he has nearly got it... It should probably be:

    =iferror(iferror(vlookup(Sheet1!A2,Sheet2!A2:B9,2,FALSE),vlookup(Sheet1!A3,Sheet2!A2:B9,2,FALSE)),"")

    please attach a sample workbook (NOT a picture of one...), showing your expected results...
    Last edited by Glenn Kennedy; 05-12-2017 at 04:17 PM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    08-29-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    13

    Re: Vlookup multiple values within the same range

    Thank you Glenn & JjHayes. Both formulas worked.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Vlookup multiple values within the same range

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Replies: 10
    Last Post: 07-25-2015, 01:41 PM
  2. Replies: 13
    Last Post: 10-13-2014, 02:00 AM
  3. Replies: 3
    Last Post: 07-24-2014, 01:58 AM
  4. [SOLVED] With repeated values in a range, Vlookup only shows adjacent values for the last one
    By fsalina in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2014, 03:19 PM
  5. [SOLVED] Vlookup multiple values in a range and sum
    By kboy1289 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-06-2013, 02:03 PM
  6. Replies: 6
    Last Post: 09-04-2012, 10:35 AM
  7. Is there anyway to use Vlookup for negative values or a range of values?
    By excelplshelp1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-28-2008, 10:19 AM

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