+ Reply to Thread
Results 1 to 4 of 4

Macro to copy data from multiple columns to new location and remove duplicates

  1. #1
    Registered User
    Join Date
    04-16-2014
    Location
    vancouver
    MS-Off Ver
    Excel 2007
    Posts
    18

    Macro to copy data from multiple columns to new location and remove duplicates

    I'm trying to copy data from multiple columns to a new location where I can then use the remove duplicates function on the Data tab. I've uploaded a sheet that shows what I'm trying to do. There will be significantly more data in the real one, but I've just put in some filler.

    In the sheet, from the first section, I would select the labelled red ABCD columns and paste them in the corresponding red ABCD columns. Then I would do the same with the black, then the blue and so on.

    If anyone can point me in the right direction, I would really appreciate it.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-03-2015
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    64

    Re: Macro to copy data from multiple columns to new location and remove duplicates

    See if this will work for you. Just edit to fit your needs.

    Please Login or Register  to view this content.
    Last edited by jonathann3891; 06-23-2015 at 03:24 PM.

  3. #3
    Registered User
    Join Date
    04-16-2014
    Location
    vancouver
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Macro to copy data from multiple columns to new location and remove duplicates

    Thanks, Jonathann!

    This is close to what I'm looking for, except I need to remove the duplicates of the entire pasted range as a whole, rather than the individual columns.

    I've updated it to the following and it seems to be working. Thanks again for your help!

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-03-2015
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    64

    Re: Macro to copy data from multiple columns to new location and remove duplicates

    Glad I could help

+ 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: 2
    Last Post: 01-13-2014, 10:52 AM
  2. Copy columns, remove duplicates and paste different worksheet and column query
    By Chris* in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2014, 06:52 AM
  3. Remove duplicates from multiple columns using VBA
    By rbs123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2013, 03:48 AM
  4. Replies: 3
    Last Post: 06-12-2012, 01:33 PM
  5. [SOLVED] copy two Columns into one and remove duplicates
    By vew32 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2012, 10:07 AM

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