+ Reply to Thread
Results 1 to 9 of 9

Appending, sorting and removing duplicates of chunks of data per column

  1. #1
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Appending, sorting and removing duplicates of chunks of data per column

    Hi Guys,

    I have two worksheets:

    Sheet1 which has one column ColA, that contains unfixed number of chunks of data all separated with one empty row.
    Sheet2 which has one column ColA that contains fixed number of data at 32 each, and also all separated with one empty row.

    What I am after is to:
    1. append each group of data from Sheet1 ColA, with its equivalent group of data in Sheet2 ColA, so that the first group of data in Sheet1 ColA goes with the first group of data in Sheet2 ColA, and so on, then
    2. sort ascend each group, and remove duplicates if there's any.

    If a group in Sheet2 does not have an equivalent group in Sheet1, then it is sorted and had any duplicates removed as there's nothing to append from Sheet1.

    The final outcome is expected to be in Sheet3 ColA, as shown in the attached example.

    Can I get assistance with this question, please?

    Many thanks in advance.

    List_of_names_appending_sorting.xlsx

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: Appending, sorting and removing duplicates of chunks of data per column

    Hi there,

    If all of the names are to be combined as shown in Sheet 3, can what you want be achieved by just combining all of the names from Sheets 1 and 2 into a single list, sorting them, and then removing any duplicates?

    Regards,

    Greg M

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

    Re: Appending, sorting and removing duplicates of chunks of data per column

    This should do
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: Appending, sorting and removing duplicates of chunks of data per column

    Thank you very much Jindon for such masterpiece. Words are incapable to express my gratitude.
    I ran the code it did exactly what is needed.
    All the best my dear.

  5. #5
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: Appending, sorting and removing duplicates of chunks of data per column

    Thank you very much Greg M for your response. In fact, the reason behind segmenting data into groups it that every group has its individual properties. In my real data, they are not names, but components of different entities.
    All the best.

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

    Re: Appending, sorting and removing duplicates of chunks of data per column

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,879

    Re: Appending, sorting and removing duplicates of chunks of data per column

    Hi, I wrote also simple code (not that elegant as jindon's piece), but it took me some time to test it (had some problems with diffrent number of chunks.

    Anyway, it is ready so I'll publish it too:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,879

    Re: Appending, sorting and removing duplicates of chunks of data per column

    Hi, I wrote also simple code (not that elegant as jindon's piece), but it took me some time to test it (had some problems with diffrent number of chunks.

    Anyway, it is ready so I'll publish it too:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: Appending, sorting and removing duplicates of chunks of data per column

    Thank you very much Kaper for your magic code. I also tested it and it did run smoothly and produced the desired result.
    Now I have two masterpieces in hand for the same question.
    Once again thank you.
    Best regards,

+ 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: 11
    Last Post: 02-05-2015, 07:13 PM
  2. Sorting based on one column values and removing duplicates!
    By devpp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2013, 09:41 AM
  3. Excel 2007 : Removing Duplicates without sorting
    By mohit rawat in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 03:11 AM
  4. Removing Duplicates in one column and summarizing data
    By guard23 in forum Excel General
    Replies: 5
    Last Post: 02-09-2012, 03:33 PM
  5. merge data from array without removing column duplicates
    By aversluis in forum Excel General
    Replies: 3
    Last Post: 09-26-2007, 12:48 PM

Tags for this Thread

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