+ Reply to Thread
Results 1 to 9 of 9

Identify row duplicates and merge unique data

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    Florida, USA
    MS-Off Ver
    2010
    Posts
    5

    Unhappy Identify row duplicates and merge unique data

    Hello, I have been trying unsuccessfully to find a solution. I have a master spreadsheet that I add rows to each week. Some of the added rows contain duplicates. I need to be able to find the duplicates and either merge them or keep the lastest duplicate.

    this is an example of what I need to do. I have 1000's of rows and lots of columns, I am only worried about the duplicates in Column A and the only data that will need to be merged is in Columns D-G


    CURRENT
    1234567 Step 1 10/1/2014 John Smith
    7654321 Step 5 11/1/2014 Jane Doe
    1234567 Step 2 10/1/2014 John Smith

    NEED THIS

    1234567 Step 2 10/1/2014 John Smith
    7654321 Step 5 11/1/2014 Jane Doe

    OR THIS

    1234567 Step 1, Step 2 10/1/2014 John Smith
    7654321 Step 5 11/1/2014 Jane Doe

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Identify row duplicates and merge unique data

    Hi Melisa,

    Welcome to the Forum!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    10-01-2014
    Location
    Florida, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Identify row duplicates and merge unique data

    I am unable to upload the test file. I receive the error below.

    "This assest is not currently being used by any content that you have access to."

    Could it be blocked by my workplace? I'm sorry...new to this.

    Edited: Okay it looks like the file did make it
    Attached Files Attached Files
    Last edited by melisa; 10-01-2014 at 05:07 PM. Reason: file uploaded

  4. #4
    Registered User
    Join Date
    10-01-2014
    Location
    Florida, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Identify row duplicates and merge unique data

    Bump No Response

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Identify row duplicates and merge unique data

    Hi Meliisa,

    Try this:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Open your Workbook

    Press ALT + F11 to open the Visual Basic Editor.

    Select "Module" from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name

  6. #6
    Registered User
    Join Date
    10-01-2014
    Location
    Florida, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Identify row duplicates and merge unique data

    Thank you so much xladept but I am getting the following error:

    Run-time error '13':
    Type mismatch

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Identify row duplicates and merge unique data

    Perhaps next code can help
    Note:
    for Loan Number = 765 it is not the same Step 5 (space at the end)
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by PCI; 10-02-2014 at 04:39 PM.
    - Battle without fear gives no glory - Just try

  8. #8
    Registered User
    Join Date
    10-01-2014
    Location
    Florida, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Identify row duplicates and merge unique data

    Thank you both. I will see which works best for my info.

  9. #9
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Identify row duplicates and merge unique data

    OK Melisa, just keep us informed

+ 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: 2
    Last Post: 12-21-2012, 12:42 AM
  2. How to merge duplicates while concatenating unique data from 3 columns
    By mdhillyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 01:13 AM
  3. [SOLVED] Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C
    By mdhillyer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2012, 03:10 AM
  4. Identify row values based on unique data
    By krishnapunekar in forum Excel General
    Replies: 8
    Last Post: 07-01-2010, 12:11 PM
  5. Using Colours to Identify Non Unique Data
    By Mossy in forum Excel General
    Replies: 1
    Last Post: 06-24-2009, 11:12 AM

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