+ Reply to Thread
Results 1 to 5 of 5

Combining rows with similar data, not exact

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    West Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Unhappy Combining rows with similar data, not exact

    Okay, I've been searching all over for a solution to this and I have come up with nothing that I can get to line up with what I need to do.

    Problem:

    I have an excel sheet that has around 80,000 employee records in it. The fields in the columns are Employee Number, Person, Assignment, Full Name, Start Date, Position(unique to person), Job (general), Location, Organization, Assignment Start Date, and Assignment End Date.

    The bad thing: This data was pulled from some sort of database that we have here. Many of the records are duplicated on every field except for the Assignment Start and End Date. For Example:

    11, 102, John Doe, Teacher.1256, Teacher, MN, School X, 7/16/2008, 11/15/2010
    11, 102, John Doe, Teacher.1256, Teacher, MN, School X, 11/16/2010, 6/30/2011

    The record being repeated is more than likely due to another field in the database that was not recorded such as a supervisor change. There can also be an unlimited number of occurrences. Also, sometimes one of the fields may have changed and so we would like to keep the records separate, for example:

    11, 102, John Doe, TeacherAssistant.1256, TA, MN, School X, 7/16/2008, 11/15/2010
    11, 102, John Doe, Teacher.1256, Teacher, MN, School X, 11/16/2010, 6/30/2011
    11, 102, John Doe, TeacherAssistant.1256, TA, MN, School X, 7/1/2011, 6/30/2012

    I'm not sure what this is going to take, but any help is appreciated. I'd imagine it would take some sort of loop to go through the entire table to lookup values over and over, but since I don't know VBA I'm out of luck there.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Combining rows with similar data, not exact

    any chance of a sample workbook with sensitice data removed, so we have a better idea of what your facing?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    West Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Combining rows with similar data, not exact

    Sorry, here is an example of what I need to do.
    Example.xlsx

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Combining rows with similar data, not exact

    ok, i took at look at your workbook, and you gave a good example of what you have and what you want.

    However, when i look at the 2 tables, the data in each is identical, so I cant see what you are trying to achieve, did you upload the correct file?

  5. #5
    Registered User
    Join Date
    05-24-2012
    Location
    West Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Combining rows with similar data, not exact

    Yes I did, notice how there is one less record in the second table. I need records such as StudentWorker.4366 to be combined. Nothing changed in the two jobs except the dates, in that case I need to combine them and take first assignment start date and the last assignment end date.

+ 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