+ Reply to Thread
Results 1 to 5 of 5

Looking up a comma separated column using another comma separated column

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    35

    Looking up a comma separated column using another comma separated column

    Hi All

    I have a bit of a tricky one here which I'm having a lot of trouble with. I think it may need a VBA solution.

    Anyways, I have 2 columns - ColA which has comma separated email addresses and ColB which has the associated user IDs.

    I want to look up each of the comma separated values (user IDs) in ColB to see if they exist in ColA as part of the email address.

    If one or more of the user IDs are found in ColA, I need them to be placed in ColC, again as comma separated values. If not found, I need them to appear in ColD as comma separated values.

    An example of the result I need is below. I'm hoping someone is able to help me with this.

    Thanks
    Darls15


    ColA
    "[email protected],[email protected],[email protected],[email protected],[email protected]"

    ColB
    klmno3,uvwxy5,zepse5,abcde1,oserc7

    ColC - FOUND
    klmn03,uvwxy5,abcde1

    ColD - NOT FOUND
    zepse5,oserc7
    Last edited by darls15; 08-09-2021 at 09:02 PM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Looking up a comma separated column using another comma separated column

    UDF
    Use in cell like

    =FindLP($A1,$B1,TRUE) True for matched, False for unmatched.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,208

    Re: Looking up a comma separated column using another comma separated column

    Traditionally
    Please Login or Register  to view this content.
    Artik

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: Looking up a comma separated column using another comma separated column

    Thought id add a basic loop option...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Registered User
    Join Date
    06-26-2014
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    35

    Re: Looking up a comma separated column using another comma separated column

    Thank you everyone I really appreciate your help. I'll test each one of these solutions with my data to see what works best. Again, much appreciated.

+ 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. [SOLVED] PQ sort numbers in comma separated column
    By Imbizile in forum Excel General
    Replies: 2
    Last Post: 02-28-2021, 11:12 AM
  2. Replies: 4
    Last Post: 12-01-2020, 01:20 PM
  3. transform data separated with comma into 1 column
    By royalB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2015, 09:39 AM
  4. Evaluating rows column-by-column to separate comma-separated data
    By adventurepirate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2014, 03:06 PM
  5. [SOLVED] split comma separated names in a column to a new column
    By letsxcel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-16-2012, 10:45 AM
  6. Excel 2007 : One column to txt comma separated values
    By Runnit4 in forum Excel General
    Replies: 1
    Last Post: 02-15-2011, 05:44 PM
  7. Going from column to comma separated list...
    By jmboggiano in forum Excel General
    Replies: 1
    Last Post: 03-10-2005, 01:06 PM

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