+ Reply to Thread
Results 1 to 14 of 14

Vlookup returning multiple values for one value

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Vlookup returning multiple values for one value

    I am looking for a vlookup formula that will return multiple values that are in one column.

    Sheet 1:
    Cell O92 = Tech Name: Jerry S.

    Sheet 2:
    Column A = Tech Names (Jerry S.)

    Column P = Fail Types

    Jerry has three fail types associated with him in Column P

    Tech Names Fail Type
    Jerry S. Valid Regist.
    Jerry S. Veh Reg.
    Jerry S. Safety

    How do i return all three fail types in a three separte cells on Sheet 1?




    Thanks.
    Last edited by ensmith; 07-13-2012 at 08:14 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup returning multiple values for one value

    You get better help if you post an Excel-example of your workbook, without confidential information.
    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.
    Use BEFORE/AFTER sheets if that helps make it clearer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup returning multiple values for one value

    Hi ensmith,

    You can use the below formula:-

    {=INDEX(Sheet2!$P$1:$P$4,SMALL(IF(Sheet2!$A$2:$A$4=Sheet1!$O$92,ROW(Sheet2!$A$2:$A$4),""),ROW(Sheet1!$A1)),1)}

    See attached:- multiple value lookup.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Vlookup returning multiple values for one value

    Thanks. I input the formula but I only was able to return two values. See attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Vlookup returning multiple values for one value

    Thanks oeklere I think i got what i needed.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup returning multiple values for one value

    Hi ensmith,

    I have updated the formula with correct range basis your sample data and included a error handler

    {=IFERROR(INDEX(Sheet2!$B$1:$B4,SMALL(IF(Sheet2!$A$1:$A$4=Sheet1!$A$3,ROW(Sheet2!$A$1:$A$4),""),ROW(Sheet1!$A1)),1),"")}

    See attached:- sample 2.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Vlookup returning multiple values for one value

    thanks for your help.
    Last edited by ensmith; 07-16-2012 at 04:52 PM.

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup returning multiple values for one value

    Hi ensmith,

    Would like to include the two red drop downs link to the name in A3
    two red drop downs? do you wish to have only two values in the drop down?
    where is the data source for this ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup returning multiple values for one value

    I agree with DILIPandey, your question is not clear.

    I suppose the answer should be the list below on the sheet JSO MTD Detail

    Gerald O'Dwyer
    NULL
    Kyle Davenport

    In that case you want an multiple linked dropdown:

    Explaination on that item you find in the below links.


    Create multiple linked dropdown list in excel

    http://helpdeskgeek.com/office-tips/...ists-in-excel/
    http://thefinch.wordpress.com/2008/0...datavalidatie/
    http://www.contextures.com/xlDataVal02.html
    http://www.snb-vba.eu/VBA_Afhankelijke_validatie.html also in Englisch

  10. #10
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Vlookup returning multiple values for one value

    Hello dilipandey,

    Thanks I figured it out

    Thanks

    Regards,
    DILIPandey
    Last edited by ensmith; 07-16-2012 at 04:51 PM.

  11. #11
    Registered User
    Join Date
    06-26-2012
    Location
    Phildelphia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Vlookup returning multiple values for one value

    Thanks for the links oeldere

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup returning multiple values for one value

    Glad I could help. Thanks for the reply.

  13. #13
    Registered User
    Join Date
    01-14-2013
    Location
    BAsingstoke, ~England~
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Vlookup returning multiple values for one value

    Quote Originally Posted by dilipandey View Post
    Hi ensmith,

    I have updated the formula with correct range basis your sample data and included a error handler

    {=IFERROR(INDEX(Sheet2!$B$1:$B4,SMALL(IF(Sheet2!$A$1:$A$4=Sheet1!$A$3,ROW(Sheet2!$A$1:$A$4),""),ROW(Sheet1!$A1)),1),"")}

    See attached:- Attachment 168139

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    HI Dilipandey, hopefully you see this.
    after much searching your answer is the closest to wha i am trying to do. Can this be done across multiple books? i am trying to use your formula and can't get it to work.
    also maybe because i am trying to search entire columns? so instead of Sheet2!$B$1:$B4, i am tying to make it read Sheet2!B:B4,
    will this not work?
    thanks

  14. #14
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup returning multiple values for one value

    Hi Samp,

    welcome to the forum.

    Suggest you to start your own thread and there you can mention about this thread as a reference... see the forum rules:-

    http://www.excelforum.com/forum-rule...rum-rules.html

    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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