+ Reply to Thread
Results 1 to 4 of 4

vlookup (or similar) results where there are mutliple matches

  1. #1
    Forum Contributor
    Join Date
    08-18-2004
    Posts
    108

    vlookup (or similar) results where there are mutliple matches

    Hello,

    I'm trying to find something similar to a vlookup that will return multiple matching values and place them horizontally in the columns after the lookup value.

    After doing some research, I found several examples like this attached worksheet example.

    What I have not been able to find is how to adjust this array formula to allow for using multiple lookup values at once. For example, in the attached sheet, let's say we have 5000 rows of data in column B. As such, we move our lookup value B8 ("Pen") to D2 and then copy the array formulas from C8-E8 to E2-G2. This works fine. However, I would then like to be able to add more unique lookup values in column D, and then copy cells E2-G2 all the way down to return results for all of them.

    As far as I can tell, this does not work because the last part of the first array formula COLUMN(A1)) increments to A2, A3, etc as you copy it down. I couldn't change it using an absolute cell reference with $ either - that doesn't seem to work in the array formula.

    Does anyone know how to accomplish this?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: vlookup (or similar) results where there are mutliple matches

    Return-multiple-values-horizontally-edit.xls

    I think your formula worked well. If the attached file is what you mean?
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Forum Contributor
    Join Date
    08-18-2004
    Posts
    108

    Re: vlookup (or similar) results where there are mutliple matches

    that is perfect...what change did you make? or did i just mess something up trying to copy them down the page?

  4. #4
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: vlookup (or similar) results where there are mutliple matches

    Yes, i did edit.
    =INDEX($C$2:$C$6, SMALL(IF($B$8=$B$2:$B$6, ROW($B$2:$B$6)-MIN(ROW($B$2:$B$6))+1, ""), COLUMN(A1)))

    =INDEX($C$2:$C$6, SMALL(IF($B8=$B$2:$B$6, ROW($B$2:$B$6)-MIN(ROW($B$2:$B$6))+1, ""), COLUMN(A1)))

    And i use IFERROR, so it wont't show #NUM!.

+ 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: 1
    Last Post: 12-11-2012, 08:55 AM
  2. to return Mutliple results with one search item
    By Bald Ben in forum Excel General
    Replies: 2
    Last Post: 01-14-2011, 04:44 PM
  3. Displaying multiple results using VLOOKUP or similar
    By soulsam in forum Excel General
    Replies: 5
    Last Post: 12-19-2009, 11:11 AM
  4. VLookup Mutliple
    By SMiLEy1989 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-23-2007, 05:35 PM
  5. [SOLVED] similar text matches vlookup
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2006, 05:25 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