+ Reply to Thread
Results 1 to 10 of 10

Merge and dedupe multple rows

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2010
    Posts
    34

    Merge and dedupe multple rows

    Hi everyone

    Been racking my brains over this for a while now and still cant quite figure it out.

    In the attachment I have a line of data for multiple resources with a corresponding date and number of hours to be spent on the project.

    I need to arrive at one line per resource with the corresponding date items on one line just moved up and deduped if that makes sense.

    Whenever I try and resolve it I and up looping myself to death.

    Any help would be greatly appreciated.

    Cheers
    Sean

    Desired Result attached also, sorry
    Attached Files Attached Files
    Last edited by seanpears99; 07-16-2012 at 08:21 PM. Reason: add attachment

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Merge and dedupe multple rows

    An example if the desired output on another sheet would be helpful.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Merge and dedupe multple rows

    Try the attached
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-15-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Merge and dedupe multple rows

    Quote Originally Posted by jindon View Post
    Try the attached
    Thinks Jindon, when I ran it nothing happened.

    I managed to get around it by doing the following, basic I know

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Merge and dedupe multple rows

    Quote Originally Posted by seanpears99 View Post
    Thinks Jindon, when I ran it nothing happened.
    You should see the result in "Sheet1", not on "temp" sheet.

  6. #6
    Registered User
    Join Date
    05-15-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Merge and dedupe multple rows

    Sorry Jindon

    Schoolboy error.

    That is awesome and so much cleaner than my version.

    Still learning and I will go through your code and pick up some tips.

    Thank you so much.

    Love your work

    Sean

  7. #7
    Registered User
    Join Date
    05-15-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Merge and dedupe multple rows

    Hi Jindon

    I have just noticed that the code will not work if there is only one resource.

    The array doesnt get loaded so after the clear contents, nothing is added.

    Any ideas?

    The attached file doesnt produce the same result and not records.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Merge and dedupe multple rows

    Try change to
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-15-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Merge and dedupe multple rows

    Jindon

    Awesome, thank you so much.

    Really appreciate your assistance.

    Sean

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Merge and dedupe multple rows

    @ seanpears99

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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