+ Reply to Thread
Results 1 to 5 of 5

Removing duplicates while consolidating all cells within each duplicate on to one Row

  1. #1
    Registered User
    Join Date
    04-23-2019
    Location
    Hood River, Oregon
    MS-Off Ver
    16.0.11425.20200
    Posts
    3

    Removing duplicates while consolidating all cells within each duplicate on to one Row

    Hello to all !

    I have a 60000 line customer list, columns A - X.
    Column A is an Email.
    There are about 5000 duplicate emails addresses.
    Within each duplicate email, columns B - X may have populated cells, IE Addresses, Country etc.
    I want to de-dup the list while preserving or capturing / consolidating on one line all populated cells in columns B - X.

    For example:
    Row 2: Cell A2: Jimemail, Cell B2: 1/1/1970, Cell C2: blank
    Row 3: Cell A3: Jimemail, Cell B2: blank, Cell C2: USA

    My Goal is to consolidate on one line
    Row 2: Cell A2: Jimemail, Cell B2: 1/1/1970, Cell C2: USA

    Thank you,
    Jim Kimball

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Removing duplicates while consolidating all cells within each duplicate on to one Row

    HI Jim,

    Can you post an example file with a about 20 lines and with duplicates. that makes it a lot easier to build a solution.
    Please look at the yellowbanner at the top of your screen on how to upload (example) files to this forum.

    Also, I can understand that you overwrite the blank cells with information from a duplicate that has a filled cell .
    But what do you want to happen if 2 records have both filled for the same cell. Is there a way to know which value should get priority, for example is there a date column so you can say keep the record with the most recent date.

  3. #3
    Registered User
    Join Date
    04-23-2019
    Location
    Hood River, Oregon
    MS-Off Ver
    16.0.11425.20200
    Posts
    3

    Re: Removing duplicates while consolidating all cells within each duplicate on to one Row

    Hi Roel Jongman. Thank you for response. There is only one column (column header "TAGS") that may have populated cells in a duplicate email row. The information in those cells is not important. These cells can be overwritten to include one of the duplicated 2 cells information.

    I will upload the sample file in just a moment. And again, thank you : )

  4. #4
    Registered User
    Join Date
    04-23-2019
    Location
    Hood River, Oregon
    MS-Off Ver
    16.0.11425.20200
    Posts
    3

    Re: Removing duplicates while consolidating all cells within each duplicate on to one Row


  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Removing duplicates while consolidating all cells within each duplicate on to one Row

    Perhaps the following will help.
    1. Make a list of distinct values from column A using: =IFERROR(IF(MATCH(0,INDEX(COUNTIF(A$20:A20,A$2:A$15),,),)>COUNTA(A$2:A$15),"",INDEX(A$2:A$15,MATCH(0,INDEX(COUNTIF(A$20:A20,A$2:A$15),,),))),"")
    2. Populate values from columns B:X using: =IFERROR(INDEX(B$2:B$15,AGGREGATE(15,6,(ROW(A$2:A$15)-ROW(A$1))/($A$2:$A$15=$A21)/(B$2:B$15<>""),1)),"")
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Duplicate Function Not Removing all Duplicates
    By agfreesafety in forum Excel General
    Replies: 3
    Last Post: 02-06-2016, 06:53 PM
  2. Removing Duplicates and Consolidating Data in A Single Row
    By jawahar-gf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-08-2014, 12:52 PM
  3. Removing Duplicates and Consolidating Data in A Single Row
    By jawahar-gf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2014, 05:16 PM
  4. Removing Duplicates without moving cells up
    By Nickyh1984 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2014, 06:02 PM
  5. Consolidating duplicate data and recording # of duplicates
    By excel.junkie in forum Excel General
    Replies: 1
    Last Post: 09-11-2013, 10:26 AM
  6. Replies: 7
    Last Post: 10-12-2012, 10:26 PM
  7. Remove Duplicates not removing all duplicate entries
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2008, 05:32 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