+ Reply to Thread
Results 1 to 6 of 6

Identify duplicate in numbers separated by comma

  1. #1
    Registered User
    Join Date
    07-20-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Identify duplicate in numbers separated by comma

    I have 30K rows listed in an excel sheet with random number separated by comma 671,962,116,029
    Noting, the duplicate SIC Code could fall anywhere within the string. I need to identify the rows that have duplicates in them. The duplicate row could be highlight or column inserted to mark this row with a duplicate SIC Code.

    an example of desired result - 101636,AIRLINES REPORTING CORPORATION,,,,,,,"7389,6099,7389"

    The above row has duplicate and should be highlighted

    Down below is more examples of the random numbers I am working with so you have clear idea

    100011 XEROX CORPORATION 50,453,861
    100041 BLUE LANCE INCORPORATED 73,727,371
    100190 CIT COMMUNICATIONS FINANCE CORPORATION 4899
    101172 ABN AMRO BANK NV 671,962,116,029

    Thank you in advance so very much for your help.
    Last edited by kb1967; 07-20-2012 at 10:46 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Identify duplicate in numbers separated by comma

    have you copied the data correctly
    should not be a comma after the first numeric
    eg 101636,airlines reporting corporation
    should not be a comma after the name of the company like
    101636,airlines reporting corporation,7389,6099,7389
    no double quotes etc
    then it would be easy to copy the data into my excel and try to work on it
    the string will be

    101636,airlines reporting corporation,7389,6099,7389

    this is entered in A1(may be in any other cell in that case modify macro)

    then try this macro


    Please Login or Register  to view this content.
    I am not an expert. better solutions may be available
    [email protected]

  3. #3
    Registered User
    Join Date
    07-20-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Identify duplicate in numbers separated by comma

    Thank you so very much for your help. I used the below code to get the result which is very much in line with what you stated above.

    Please Login or Register  to view this content.
    Last edited by Cutter; 07-23-2012 at 03:58 PM. Reason: Added code tags

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

    Re: Identify duplicate in numbers separated by comma

    1) to a standard module
    Please Login or Register  to view this content.
    2) set the conditional formatting in Col.I
    Formula :
    =Dups(I1)
    Choose Format.
    Smaple.xlsm

  5. #5
    Registered User
    Join Date
    07-20-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Identify duplicate in numbers separated by comma

    Thank you
    You are amazing

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Identify duplicate in numbers separated by comma

    @ kb1967

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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