+ Reply to Thread
Results 1 to 8 of 8

[SOLVED] Counting Delimited Unique Strings and Removing Duplicates

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    UK
    MS-Off Ver
    Pro 2003
    Posts
    13

    [SOLVED] Counting Delimited Unique Strings and Removing Duplicates

    Hello,

    This is my first post. This forum has been an amazing resource for me and one day I hope to be masterful enough to advise others here.


    Two part question.

    First, I need to count instances of unique strings in a semi-colon delimited cell, and remove duplicates.


    i.e.

    brand1;brand1;brand1;brand2;brand3;brand3
    should turn into

    brand1 (3); brand2 (1); brand3 (2)


    Second, I need to determine the most common category of the brands and put that into the next column.


    There is a list of brands on a seperate sheet ("Sheet2"), with brands in Column A and their category in Column B.

    For instance, in the example, brand1 is perfume, brand2 is perfume, and brand 3 is make up, so the next column (to the right) should say "Perfume".


    i.e.

    brand1 (3); brand2 (1); brand3 (2) | Perfume


    This has been a mad task for me to solve, but hopefully I can get some help from you guys.

    Thank you in advance!
    Last edited by The831st; 07-30-2014 at 11:38 AM. Reason: SOLVED

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

    Re: Counting Delimited Unique Strings and Removing Duplicates

    Try this in data sheet:-
    Please Login or Register  to view this content.
    Regards Mick
    Last edited by MickG; 07-30-2014 at 08:32 AM.

  3. #3
    Registered User
    Join Date
    06-27-2014
    Location
    UK
    MS-Off Ver
    Pro 2003
    Posts
    13

    Re: Counting Delimited Unique Strings and Removing Duplicates

    That is awesome.

    Thank you tremendously.

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

    Re: Counting Delimited Unique Strings and Removing Duplicates

    You're welcome

  5. #5
    Registered User
    Join Date
    06-27-2014
    Location
    UK
    MS-Off Ver
    Pro 2003
    Posts
    13

    Exclamation Re: [SOLVED] Counting Delimited Unique Strings and Removing Duplicates

    UPDATE:

    I know I marked this as solved, as it appeared to work at the time.

    However, it freezes when it reaches a brand that is not on the category list!

    This is causing some errors. Is there a simple way to make it skip identifying the brands that aren't on the list?

    Also, is possible to make it skip blank entries on Sheet1?

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

    Re: [SOLVED] Counting Delimited Unique Strings and Removing Duplicates

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  7. #7
    Registered User
    Join Date
    06-27-2014
    Location
    UK
    MS-Off Ver
    Pro 2003
    Posts
    13

    Re: Counting Delimited Unique Strings and Removing Duplicates

    Brilliant.

    I added a On Error Resume Next to the beginning and it works a treat.

    Thanks again for your help.

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

    Re: Counting Delimited Unique Strings and Removing Duplicates

    Great news !!!!

+ 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. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  2. Counting Unique Strings In A Column
    By maxc in forum Excel General
    Replies: 2
    Last Post: 11-23-2011, 08:04 PM
  3. Counting Unique Strings In A Thread
    By maxc in forum Excel General
    Replies: 1
    Last Post: 11-23-2011, 06:25 PM
  4. Removing Duplicates and Associated Unique Value
    By acsmith in forum Excel General
    Replies: 7
    Last Post: 08-17-2011, 10:42 AM
  5. counting unique strings
    By Sparky Mark in forum Excel General
    Replies: 3
    Last Post: 01-20-2005, 08:06 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