+ Reply to Thread
Results 1 to 6 of 6

Macro to copy unique cells to another column

  1. #1
    Forum Contributor
    Join Date
    04-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    128

    Post Macro to copy unique cells to another column

    Hello, I have a macro which will copy unique cells from Column A & Column B to Column D. I want a macro which will copy cells which are available in Column a but not in Column b to column d and cells wihch are avaiable in column b but not in column a to column e. I am attaching my macro file. Kindly help me by amending the macro. Thanks a lot again
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Macro to copy unique cells to another column

    This thread is almost the same as http://www.excelforum.com/excel-prog...html?p=2753852

    below you will find my solution- only unique value from columns A / B excluding those which appear in column B / A
    Please Login or Register  to view this content.
    P.s. You have hidden column E in your example workbook ;-)
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  3. #3
    Forum Contributor
    Join Date
    04-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Macro to copy unique cells to another column

    Thanks a lot. I need one more help in this excel. i.e. Column A consists of Data in xxx and Column B consists of Data in yyy. I want to rename those column's A,B,D & E so that my team get to know how to use this file. Thank you

  4. #4
    Forum Contributor
    Join Date
    04-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Macro to copy unique cells to another column

    I tried adding a heading in Cell A1,B1,D1 & E1 but while I run the macro the unique data also includes heading! Orelse can you amend the macro and start searching unique numbers from A2 & B2 and place the unique numbers from D2 & E2??? Kindly reply asap as am in office working on this thanks

  5. #5
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Macro to copy unique cells to another column

    cosmetic change, here you are:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Macro to copy unique cells to another column

    Thanks a lot ..... :D

+ 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