Results 1 to 4 of 4

Thread: Excel 2010: Can VLOOKUP return multiple non-empty values from a table?

  1. #1
    Join Date
    Jan 2012
    Posts
    4

    Excel 2010: Can VLOOKUP return multiple non-empty values from a table?

    I have a table.
    The table has a list of components down column A, one component per row.
    The table has a list of products across the top row, one product per column.
    If the component appears in a product, there is an X in the table. Otherwise, the table cel is empty.

    Is there a way that I can do a VLOOKUP on the component value, and have Excel return the names of each product in which the component appears?

    Thanks to all for any assistance or feedback!

  2. #2
    Join Date
    Jan 2012
    Posts
    4

    Re: Excel 2010: Can VLOOKUP return multiple non-empty values from a table?

    To clarify:

    For a given component (row),
    I want to know every product (column)
    that contains a value of X (or non-empty cel).

  3. #3
    Join Date
    Jan 2012
    Posts
    4

    Re: Excel 2010: Can VLOOKUP return multiple non-empty values from a table?

    I have .zipped and uploaded a dummy file, "table_example.xls," attached here.
    I am using Excel 2010.

    I have cross-posted this question to excelforum.com, and may post in mrexcel.com. If I receive a helpful reply on any forum, I shall share that information on the other forums, with due credit. I'll also mark these threads as solved once a solution can be described.
    Attached Files Attached Files
    Last edited by marathon; 21-01-2012 at 12:41 AM.

  4. #4
    Join Date
    Jan 2012
    Posts
    4

    Re: Excel 2010: Can VLOOKUP return multiple non-empty values from a table?

    Tremendous thanks to MrVillareal and NBVC! I'll study both of these solutions to learn from them. MrVillareal's solution appeared on the mrexcel thread:

    =IFERROR(INDEX($B$1:$H$1,AGGREGATE(15,6,
    (COLUMN($B$1:$H$1)-MIN(COLUMN($B$1:$H$1))+1)/(($A$2:$A$6=$B$8)*
    ($B$2:$H$6="x")),COLUMNS($B9:B9))),"")

    enter into cell B10, and copy across.


    NBVC's solution appeared on excelforum thread:

    =IFERROR(INDEX($B$1:$F$1,SMALL(IF(INDEX($B$2:$F$6,
    MATCH($B$8,Component_List,0),0)="x",COLUMN($B$1:$F$1)-COLUMN($B$10)+1),
    COLUMNS($B$1:B$1))),""

    confirmed with CTRL+SHIFT+ENTER (not just ENTER), and copy across.


    This thread is solved. Now, to learn how to MARK the thread solved. Thanks again to MrVillareal and NBVC for the education.

Similar Threads

  1. How to get multiple values of Vlookup in Single Cell
    By Henriksen in forum MS Office Support
    Replies: 4
    Last Post: 25-02-2012, 11:02 AM
  2. Multiple Matches Return To VLOOKUP
    By Brunon in forum Windows Software
    Replies: 5
    Last Post: 26-11-2010, 11:32 PM
  3. Replies: 5
    Last Post: 27-10-2009, 12:40 AM
  4. php return multiple values
    By Aston5 in forum Software Development
    Replies: 2
    Last Post: 29-06-2009, 10:14 PM
  5. Excel : vlookup multiple values
    By Laler in forum Windows Software
    Replies: 3
    Last Post: 25-06-2009, 10:27 AM

Tags for this Thread

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
  •  
Page generated in 1,713,922,434.15824 seconds with 18 queries