+ Reply to Thread
Results 1 to 5 of 5

Merging rows with similar data?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    3

    Merging rows with similar data?

    Hi there, I hate for this to be my first post here, but I'm having a little trouble and wondered if you guys could help me :D

    I have an excel spreadsheet with ~2000 rows, each row is as follows:

    | First name | Surname | Contact Information | Address |

    My problem resides in the contact information cell on each row, the I have a lot of duplicate rows like the following:

    | Joe | Bloggs | 1234567890 | Address |
    | Joe | Bloggs | joe@bloggs.com | Address |

    All of the data is the same in these duplicate rows apart from the contact information. Is it possible for me to scan through the spreadsheet, find rows such as these and merger them to look something like this?:

    | Joe | Bloggs | 1234567890, joe@bloggs.com | Address |
    or
    | Joe | Bloggs | 1234567890 | joe@bloggs.com | Address |

    It's kind of difficult to explain any better, although if you have trouble understanding I will try to explain in a different way. :p

    Thanks for any help!

    Jake

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

    Re: Merging rows with similar data?

    Do you have a sample file that you can upload?

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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]

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Merging rows with similar data?

    I can prepare one, I will have to remove any sensitive data beforehand though, I will get to it as soon as I have a free 20mins from work.

    Thanks for the help!

    EDIT: I have attached a small portion of the data, as you can see, not all rows have a duplicate like in the example.

    Thanks again!
    Attached Files Attached Files
    Last edited by Baguette; 01-28-2013 at 08:41 AM.

  4. #4
    Registered User
    Join Date
    01-28-2013
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Merging rows with similar data?

    Sorry to bump so soon, but if anyone can help me out, I'd really appreciate it.
    If I can get it done today, it will cut my workload in half tomorrow.

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

    Re: Merging rows with similar data?

    A few questions -

    1. Will the data always be sorted prior to running the macro or can we include the sorting in the code?

    2. Is it always column D that will have the variants in info?

    3. I am guessing that your original data will have headers. Your sample file doesnt and when you try and make the code work on your original, you will face issues.

    4. Should columns A & B be compared together to arrive at duplicate/matching entries?

+ 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