+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP to show all results, instead of first matching one

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-28-2010
    Location
    Antwerp, Belgium
    MS-Off Ver
    Office 365
    Posts
    170

    VLOOKUP to show all results, instead of first matching one

    I have the following table:

    title data
    HK A
    CC B
    HK C

    I want another table that will show me results based on the selection in the title column.
    So if I put HK it will show me a list of results where the title is HK.

    I tried to do it with VLOOKUP, but it always shows me the first result. Like this:

    A
    A

    And I want it to show:

    A
    C

    Thanks!

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: VLOOKUP to show all results, instead of first matching one

    Try the idea applied here: http://www.excelforum.com/excel-form...ml#post2921044


    Check out the attachment. Change the E4 cell value, you will get a list beneath that for the matched values.
    Attached Files Attached Files
    Last edited by GeneralDisarray; 10-01-2014 at 04:03 PM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    05-28-2010
    Location
    Antwerp, Belgium
    MS-Off Ver
    Office 365
    Posts
    170

    Re: VLOOKUP to show all results, instead of first matching one

    Thanks, I've tried it, but I don't manage to do Report 3rd.

    This is the formula for the Report 2nd:
    Formula: copy to clipboard
    =INDEX(INDEX($A$4:$A$330,1+MATCH(D4,$A$4:$A$330,0),1):$B$330,MATCH(D4,INDEX($A$4:$A$330,1+MATCH(D4,$A$4:$A$330,0),1):$A$330,0),2)


    Tried to change both 1+MATCH to 2+MATCH, doesn't work.

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: VLOOKUP to show all results, instead of first matching one

    Try using this array formula.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-28-2010
    Location
    Antwerp, Belgium
    MS-Off Ver
    Office 365
    Posts
    170

    Re: VLOOKUP to show all results, instead of first matching one

    YYYYYYYYYYYYYEEEEEEEEEEEESSSSSSS!

    Thanks

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: VLOOKUP to show all results, instead of first matching one

    Sorry, when i was adjusting my example for your version of the problem I should have subtracted 2 not 3:

    {=IF(D4>SUMPRODUCT(IF(keyCol=E$3,1,0)*IF(keyCol=E$3,1,0)),"",INDEX(scores,SMALL(IF(keyCol=E$3,ROW(keyCol)-2,FALSE),D4),1))}

    Looks like hoasaxa beat me to the punch with another solution
    Last edited by GeneralDisarray; 10-02-2014 at 03:33 PM.

+ 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. Use INDEX for matching, and VLOOKUP a MIN between these results
    By gaker10 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-25-2014, 09:05 AM
  2. [SOLVED] Using VLookup but results show formula instead of results...
    By excel me in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-28-2013, 09:40 PM
  3. VBA - how to get ALL matching results using MATCH() or VLOOKUP()
    By kala1928 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2010, 04:39 AM
  4. Show results of VLOOKUP as blank...
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2008, 03:51 PM
  5. VLOOKUP show all results
    By New_Man in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2005, 03:20 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