+ Reply to Thread
Results 1 to 6 of 6

Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C

    I am combining vocabulary lists from various sources and want to keep a tag to know where each came from. I have about 6000 entries from about 10 lists, of which about 3000 are duplicates. I have only need of the definition of the first list imported (imported in order of priority) and the rest can be deleted. However, I want to keep all the list names.

    For example:

    A/ B /C
    Cat/ a feline animal/ List1
    Carrot/ an orange vegetable/ List1
    Red/ Color of blood/ List1
    Hat/ Something to wear on the head/ List2
    Candy/ A sweet edible/ List2
    Carrot/ Good source of Vitamin A/ List2
    Yard/ A measure of Length / List2
    Yard/ Length of 3 feet/ List3
    Red/ The color of roses/ List3
    Candy/ A sweet food/ List3
    Hat/ Clothing for the head/ List3
    Carrot/ A snowman's nose/ List3

    Should change to:

    A/ B /C
    Cat/ a feline animal/ List1
    Carrot/ an orange vegetable/ List1;List2;List3
    Red/ Color of blood/ List1; List3
    Hat/ Something to wear on the head/ List2;List3
    Candy/ A sweet edible/ List2;List3
    Yard/ A measure of Length / List2;List3

    Thank you in advance.
    Last edited by mdhillyer; 09-05-2012 at 09:46 AM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C

    try it
    Please Login or Register  to view this content.
    Last edited by nilem; 09-05-2012 at 12:52 PM. Reason: delete ReDim y()

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C

    Hi nilem
    if I understand well, you used dictionary only to distinguish duplicates, correct ?
    Last edited by patel45; 09-05-2012 at 12:40 PM.
    If solved remember to mark Thread as solved

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C

    Hi, Patel. Yes, you're right. For these same purposes, you can use the Collection. Just for example
    Please Login or Register  to view this content.
    Last edited by nilem; 09-05-2012 at 12:53 PM.

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C

    Brilliant. Worked perfectly.

    Thank you so much.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    I have done it for you this time.
    Last edited by arlu1201; 09-06-2012 at 03:25 AM.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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