+ Reply to Thread
Results 1 to 3 of 3

Duplicate rows, delete columns w/same data, combine columns w/unique data, Mac Excel 2011

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    NC
    MS-Off Ver
    Mac Excel 2011
    Posts
    2

    Duplicate rows, delete columns w/same data, combine columns w/unique data, Mac Excel 2011

    Hello,
    I am new to this forum, but I have spent a lot of time here and elsewhere trying to find a way to manage this project. I'm not familiar with VB scripts, so I'm having a hard time modifying other examples to my own needs.
    I have combined records from 4 different sources into a monster, um, master list of 22K rows and dozens of columns, including many duplicates of column cells. I want to delete the column cells that have identical data, and combine the column cells that have unique data.
    I've sorted by last name, first name and used a script to identify duplicates. Next I'll have to match last name, email. to find further dupes. I expect there about 8K unique records when this is done.
    For instance (and I'm going to try to attach a sample XLS file)
    First Name | Middle Name | Last Name | Programs
    Col | | Amb |
    Col | | Amb |
    Je | | Ambur |
    Je | | Ambur |
    Mar | | Amst |
    Mar | C. | Amst |
    Mar | C. | Amst | 08C
    Mar | C. | Amst | events

    So in this sample set, I'd like the results to look like this:
    Col | | Amb |
    Je | | Ambur |
    Mar | C. | Amst | 08C, events

    I apologize if I'm unclear and will happily provide any additional information. Thanks for any help you can provide on this monster project!
    Kind regards,
    Margaret
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,852

    Re: Duplicate rows, delete columns w/same data, combine columns w/unique data, Mac Excel 2

    I find that to find duplicates across multiple cells in a row you will need to create a helper column that concatenates the columns that you want to test for duplicates and then compare them. ie. Test for last name and email = LastNameCell & EmailCell.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-03-2013
    Location
    NC
    MS-Off Ver
    Mac Excel 2011
    Posts
    2

    Re: Duplicate rows, delete columns w/same data, combine columns w/unique data, Mac Excel 2

    Hi Alan,
    Thanks for your speedy reply. Yes, I do have that extra column in my sample XLS, though I didn't show it in my message. Wht I need to do now that I've identified the columns is combine the rows. The trick is to end up with one row, and in a column with the same data duplicated, only have one instance of that, while in columsn with different data, have them combined. I'm hoping you or another intrepid VB expert here might be able to help me!
    Thanks again,
    Margaret

    Quote Originally Posted by alansidman View Post
    I find that to find duplicates across multiple cells in a row you will need to create a helper column that concatenates the columns that you want to test for duplicates and then compare them. ie. Test for last name and email = LastNameCell & EmailCell.

+ 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