+ Reply to Thread
Results 1 to 8 of 8

Vlookup for multiple results

  1. #1
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Vlookup for multiple results

    Hi Experts
    in given two columns below, attempted to use Vlookup but cell A3 and A6 has same value =8, so only B3 value 21 is picked up and B6 value 26 is not picked up.
    Appreciate guidance for modified Vlookup function in following issue

    A1 B1
    3 16
    2 20
    8 21
    7 22
    5 23
    8 24
    4 25
    6 26
    1 27


    Thanks in advance
    Karnik

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Vlookup for multiple results

    Try this ...

    =IFERROR(INDEX($B$1:$B$10,AGGREGATE(15,6,ROW($A$1:$A$10)/($A$1:$A$10=8),ROWS($A$1:A1))),"")

    Copy down.

  3. #3
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Re: Vlookup for multiple results

    Hi Phuocam,
    Thanks for looking in to, attempted but not getting anything in a cell just blank
    may be you can try in
    excel 2010 and email file?
    Thanks in advance
    Karnik

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Vlookup for multiple results

    See this ...
    Attached Files Attached Files

  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
    52,936

    Re: Vlookup for multiple results

    I know you said A and B, so adjust as needed...
    P
    Q
    R
    S
    2
    3
    16
    21
    3
    2
    20
    24
    4
    8
    21
    5
    7
    22
    6
    5
    23
    7
    8
    24
    8
    4
    25
    9
    6
    26
    10
    1
    27

    S2=IFERROR(INDEX(Q:Q,SMALL(IF($P$2:$P$10=8,ROW($P$2:$P$10)),ROWS($A$1:A1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Then copy down as needed
    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

  6. #6
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Re: Vlookup for multiple results

    Hi phucam & FDibbins
    Thanks for solution both re diverse but yield same result
    Thanks
    Karnik

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Vlookup for multiple results

    You are welcome!

  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
    52,936

    Re: Vlookup for multiple results

    Looks like you gave me a negative rep by mistake? Do you want me to correct tat, and is it possible you gave Phuocam a neg rep by mistake too?

+ 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] Vlookup with multiple results and multiple sheets in Excel
    By Philangr8 in forum Excel General
    Replies: 6
    Last Post: 11-29-2016, 07:01 PM
  2. Help using vlookup to return multiple results for one vlookup value
    By Akmon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2015, 06:00 AM
  3. [SOLVED] using Vlookup with multiple results and averaging the results.
    By xatomicx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2015, 10:19 AM
  4. vlookup - multiple results
    By 007juk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-03-2014, 09:14 AM
  5. [SOLVED] Help with multiple results when using vlookup
    By christopherjward in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-22-2013, 01:26 PM
  6. Vlookup multiple results
    By Ade6 in forum Excel General
    Replies: 4
    Last Post: 07-10-2010, 02:13 PM
  7. Multiple Vlookup Results
    By qwertyuk in forum Excel General
    Replies: 3
    Last Post: 11-07-2009, 04:46 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