+ Reply to Thread
Results 1 to 4 of 4

Find a Value In A Table of Cell Each With More Than 2 Values Separated By Commas

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Find a Value In A Table of Cell Each With More Than 2 Values Separated By Commas

    I have two tables:

    First table M24:R37 has two columns, one column has single values per cell (K24 has A; K25 has B, etc.) second column has multiple values per cell (M24 has Z1, Z2, A1; M25 has B1, B1A, B1B; etc.)

    Second table has one column of single values per cell (A1, B1, etc.) starting in cell A5. Second column is blank and would like to be populated with a corresponding value from column 1 in table one (M).

    What I would like to do is to create a Vlookup type command that will look for a value in second table Column A from the first table M24:R37 and return value from first column (M) in that table. The issue I am having is with the values in column 2 of table one that have values separated by commas. I do not think excel is recognizing that it is a list of individual values.


    A1
    B1
    B1A
    B1B
    B1C
    etc.


    A - Z1,Z2,A1,B5
    B - B1,B1A,B1B,B1C
    C - D1,D1A,D1B,D1C
    D - C1,C1A,C1B
    E - D5,D5A
    etc. - etc.
    Last edited by Misha322; 02-28-2012 at 06:41 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find a Value In A Table of Cell Each With More Than 2 Values Separated By Commas

    I am a little confused about the columns to reference.. but generally you can perhaps use a wildcard.

    e.g.

    =INDEX($K$24:$K$37,MATCH("*"&A2&"*",$M$24:$M$37,0))

    this looks up the value that is in A2 and finds it within the comma separated values in column M and returns what is in column K at the same row....

    you may have to rearrange ranges...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Find a Value In A Table of Cell Each With More Than 2 Values Separated By Commas

    Perfect!!!! Worked like a charm, thank you!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find a Value In A Table of Cell Each With More Than 2 Values Separated By Commas

    Great!

    If you are satisfied with the solution provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1