+ Reply to Thread
Results 1 to 4 of 4

How to look up a value in a list and return multiple corresponding values

  1. #1
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Question How to look up a value in a list and return multiple corresponding values

    Hi All,

    I wonder if there is a way to look up a particular value (in the attached ) and to return multiple corresponding values?

    On the attached are three tabs (the original is three different workbooks), what I'm trying to do is something like below, but this only returns the first dataset and I need all sets for each client.

    =IFERROR(INDEX('Their Data'!$A$2:$A$8,MATCH(A2,'Their Data'!$B$2:$B$8,0)),"")

    for instance, if Bob client 1 has more than one order it'll show as per attached.

    Thanks for you help.

    CLASH
    Attached Files Attached Files
    Last edited by Clash; 10-23-2013 at 09:50 AM.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to look up a value in a list and return multiple corresponding values

    multiple_corresponding_values(1).xlsx
    Please see above.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to look up a value in a list and return multiple corresponding values

    Hi,

    Enter this array formula in B2 of the Collation sheet and copy across and down:

    =IFERROR(INDEX(Orders!$B$2:$C$14,SMALL(IF(Orders!$A$2:$A$14=Collation!$A2,ROW(Orders!$A$2:$A$14)-MIN(ROW(Orders!$A$2:$A$14))+1),ROUNDUP(COLUMNS($A:A)/2,0)),1+(MOD(COLUMNS($A:A),2)=0)),"-")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Re: How to look up a value in a list and return multiple corresponding values

    Thanks Both, you've saved me masses of work.

+ 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. How to look up a value in a list and return multiple corresponding values?
    By arnabmit in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-28-2013, 07:43 AM
  2. Look up a value in a list and return multiple corresponding values
    By Jord- in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-19-2011, 09:04 AM
  3. Replies: 6
    Last Post: 07-26-2011, 04:36 PM
  4. Look up multiple values in list and return sum
    By johnnyjester in forum Excel General
    Replies: 2
    Last Post: 09-13-2010, 08:07 AM
  5. Replies: 7
    Last Post: 12-06-2006, 12:12 PM

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