+ Reply to Thread
Results 1 to 2 of 2

Compare comma-separated values with look-up values

  1. #1
    Forum Contributor
    Join Date
    10-06-2012
    Location
    Basel, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    157

    Compare comma-separated values with look-up values

    Hi,
    I am looking for a formula (or a vba code) for comparing comma-separated values (columnA) with look-up values from columnB and the result is comma-separated values:
    columnA
    text1, DE, FR, KR, JP, text2, txt3
    txt6,FR
    JP, PL, AU

    columnB
    DE
    US
    FR
    JP
    AU

    Result
    DE, FR, JP
    FR
    JP, AU

    Thanks in advance

    N

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,705

    Re: Compare comma-separated values with look-up values

    VBA ..

    Please Login or Register  to view this content.
    Data in A1 down

    Cods in B

    in C1 ..

    =match_CSV(A1,$B$1:$B$5)
    Attached Files Attached Files

+ 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] Compare comma separated values in a cell to a list
    By SMB in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-03-2019, 01:10 AM
  2. Replies: 1
    Last Post: 05-29-2014, 12:27 PM
  3. Error in a existing Macro used for compare the Comma Separated Values present in 2 columns
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2014, 05:44 AM
  4. [SOLVED] Macro to give the count of unique values after comparing the comma separated values
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 12:41 AM
  5. [SOLVED] How to count values separated by a comma
    By PlamSa in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-19-2013, 09:10 AM
  6. Comma separated values
    By shrikantk in forum Excel General
    Replies: 3
    Last Post: 05-18-2009, 09:52 AM

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