+ Reply to Thread
Results 1 to 7 of 7

Merge .csv columns and remove duplicates

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    Chelmsford, England
    MS-Off Ver
    2010
    Posts
    4

    Merge .csv columns and remove duplicates

    Hi All,

    I've searched everywhere and can't find the answer to my specific problem.
    I have a .csv file that's created by merging 3 other .csv files. This has led to data being duplicated in this fashion (sample data):

    hCR6jLG.png

    What I would like to achieve is the following result:

    HpBGtjU.png

    As you can see I would like to merge all rows where the information in columns A-D are the same.

    Is this possible with a macro? Thanks in advance for your help.

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Merge .csv columns and remove duplicates

    Am I correct in thinking that the ID will always be unique to that person?
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Registered User
    Join Date
    07-30-2015
    Location
    Chelmsford, England
    MS-Off Ver
    2010
    Posts
    4

    Re: Merge .csv columns and remove duplicates

    Yes that is correct.

  4. #4
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Merge .csv columns and remove duplicates

    Try this:

    Please Login or Register  to view this content.
    Last edited by ARowbot; 07-30-2015 at 06:41 AM.

  5. #5
    Registered User
    Join Date
    07-30-2015
    Location
    Chelmsford, England
    MS-Off Ver
    2010
    Posts
    4

    Re: Merge .csv columns and remove duplicates

    Thanks ARowbot I'm getting an error "Application-defined or object-defined error" (1004) on this line:

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Merge .csv columns and remove duplicates

    Silly me!

    Use this instead:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-30-2015
    Location
    Chelmsford, England
    MS-Off Ver
    2010
    Posts
    4

    Re: Merge .csv columns and remove duplicates

    Perfect! Thank you so much

+ 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. Remove Duplicates in columns
    By naveenmarapaka in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2014, 11:10 AM
  2. Merge Columns B,C,D,E and F, If duplicates exist in Column A
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 84
    Last Post: 03-25-2014, 03:37 PM
  3. Compare 2 columns and remove duplicates in both columns when found
    By 1dtms in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2013, 02:19 AM
  4. [SOLVED] Remove rows based on duplicates in certain columns, and merge data from another column
    By yanagi600 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-02-2013, 04:17 PM
  5. Merge two columns with non-duplicates and sort
    By Zaeguzah in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2010, 09:23 AM
  6. Remove duplicates from col.A and merge col.B
    By wali in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-13-2008, 04:54 PM
  7. Merge and Remove Duplicates in Excel List
    By ericgcollyer in forum Excel General
    Replies: 8
    Last Post: 05-14-2007, 11:33 PM

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