+ Reply to Thread
Results 1 to 7 of 7

Pair down results based on input

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Question Pair down results based on input

    Hi All,

    I am trying to find an easy way of paring down a list based on input from another cell. I don't know if a VLookup or a MATCH of some kind is in order. I could use some help. Attached is a very simple sample of what I would like to see happen. I have Column A with input that is gathered elsewhere in my workbook. What I need is to match the Modality_Long (Column B) to the input of Column A and report or copy the matched up field to Column C. I am sorry if the discription is confusing. Hopefully the sample will help.

    Thank you,

    Patrick
    Attached Files Attached Files
    Last edited by pjbassdc; 09-14-2011 at 01:13 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: Pair down results based on input

    Try this formula:

    =INDEX(B:B,MATCH("*("&A2&")*",B:B,0))

    copied down.

    This looks for your column A item within the sets of parentheses in column B.. to give new results.
    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
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: Pair down results based on input

    Maybe, in cell C2:

    =IF(COUNTIF(A:A,MID(B2,FIND("(",B2)+1,FIND(")",B2)-(FIND("(",B2)+1)))>0,B2,"Not present")


    Then filter on Not equal to "Not present"


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Pair down results based on input

    Thank you both for your help. Your solutions took care of my issue.

    Thanks you very much,
    Patrick

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: Pair down results based on input

    You're welcome.

    If this has answered your question, please mark your thread as solved. See my signature for details or the FAQ.

    Regards

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

    Re: Pair down results based on input

    He did, over an hour ago

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: Pair down results based on input

    Must have missed that ;-))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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