+ Reply to Thread
Results 1 to 6 of 6

Macro to copy and paste only unique values from one column to another column in same sheet

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Macro to copy and paste only unique values from one column to another column in same sheet

    Hello Guys,

    I need help in creating a Macro which first count the no. of used rows then copies only the unique values present in Column F and paste it into Column G of same sheet.

    Please refer the attached Sample sheet for having more clarity.

    I want to do this only through a Macro.

    Any help will be appreciated.

    Thanks,
    MG
    Attached Files Attached Files
    Last edited by Manish_Gupta; 05-19-2014 at 05:46 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro to copy and paste only unique values from one column to another column in same s

    Hi,

    I know you asked for a macro, but ultimately formulas are faster and more convenient....
    See the proposed solution: 1.jpg

    Attached...
    Attached Files Attached Files
    Regards,
    Rudi

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to copy and paste only unique values from one column to another column in same s

    Try the attached code.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Re: Macro to copy and paste only unique values from one column to another column in same s

    Hello AB33,

    Many thanks for reply.

    The code is working perfect. Only one thing if you can change in it is; the Macro is throwing result in a new sheet and i need the result in the same sheet.

    If possible can you please modify the code to show the result in same sheet.

    Thanks,
    MG

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to copy and paste only unique values from one column to another column in same s

    Amended code!
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Re: Macro to copy and paste only unique values from one column to another column in same s

    Hello AB33,

    The code is working perfectly fine.

    Many thanks for your help.

    Thanks,
    MG

+ 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. Macro to copy values from columns of one sheet & paste it to diffrnt Column Sequence
    By kmvasudha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2013, 06:54 AM
  2. Copy and paste unique values from column, and use countif function to calculate average
    By michaeldaniel25 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2013, 07:56 AM
  3. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  4. [SOLVED] Macro to identify a unique value in a column to copy and paste value to another sheet
    By bonny24tycoon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2012, 07:59 AM
  5. Macro that will copy values in Column J and paste values to Column B in new sheet
    By Phixtit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2010, 04:56 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