+ Reply to Thread
Results 1 to 3 of 3

Compare two cells with comma delimited numbers and display the numbers that are NOT duplic

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Compare two cells with comma delimited numbers and display the numbers that are NOT duplic

    I have a spreadsheet where cells have a comma delimited collection of numbers that I need to compare:

    For example:

    The value of A1 = "14, 16, 25, 22, 430, 500"
    The value of B1 = "14, 16, 38, 22, 430"

    I would like the value of C1 to be, in the same comma delimited format, all the numbers A1 has that B1 does NOT.
    I would like the value of D1 to be, in the same comma delimited format, all the numbers B1 has that A1 does NOT.

    So based on the example above:

    C1 would = "25, 500"
    D1 would = "38"


    I assume this is too complex to do with a formula, so how would I do this with VBA?

    This would need to be repeated for hundreds of lines and ran automatically.
    Last edited by ks100; 11-13-2014 at 02:02 PM.

  2. #2
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Compare two cells with comma delimited numbers and display the numbers that are NOT du

    Figured it out using this page: http://www.ozgrid.com/VBA/array-differences.htm

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Compare two cells with comma delimited numbers and display the numbers that are NOT du

    Another option:-

    Please Login or Register  to view this content.
    Regards Mick

+ 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] Sort with comma delimited numbers
    By werko in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2014, 08:49 PM
  2. Splitting comma delimited numbers into new columns
    By salmansohail in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2010, 07:00 PM
  3. Splitting comma delimited numbers into new columns
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-23-2009, 07:30 PM
  4. Adding comma delimited numbers in a cell
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2009, 01:23 PM
  5. [SOLVED] Display numbers in a userform txtfield as numbers with a comma
    By TimT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2005, 07:00 PM

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