+ Reply to Thread
Results 1 to 6 of 6

Help with VBA Finding Duplicates and Copy in new sheet

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Help with VBA Finding Duplicates and Copy in new sheet

    Hi Everyone

    I have the following problem and will appreciate your help:

    I have the following code
    Please Login or Register  to view this content.
    The code looks into Column C and if the division = Mens then it will return the value of the cell in Col A for that row. When I run this the No value aleays stays the same , i.e. in C1 and C5 are equal to Mens but I always get the value of the cell in A2 for NO.

    Is the a way I can update the rows so that it returns the NO for the corresponding value when Col C contains Mens.

    My second Query is if possible I need do the following:
    if value in C Column is Mens then then copy every Customer no from Co A which are duplicated to another sheet (sheet2). In example below Customer 7322 is duplicate and one of the dept is Mens so copy all the rows where No is 7322 to sheet 2. This will not be the case for No 7439 as the departmets does not include Men.

    7322 150 Mens Duplicate
    7322 1.76 Food and Beverages Duplicate
    7439 104.74 Restaurants Duplicate
    7439 60 Shoe Heaven Duplicate
    8288 60.98 Childrenswear Duplicate

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Help with VBA Finding Duplicates and Copy in new sheet

    Assuming that row 1 contains headers, try:
    Please Login or Register  to view this content.
    Last edited by Mumps1; 12-07-2016 at 02:39 PM.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with VBA Finding Duplicates and Copy in new sheet

    Thank you o much for this. It worked perfectly. This has saved me a lot of time.
    Thanks again for the perfect solution

  4. #4
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with VBA Finding Duplicates and Copy in new sheet

    Thank you so much for this. It worked perfectly. This has saved me a lot of time.
    Thanks again for the perfect solution

  5. #5
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with VBA Finding Duplicates and Copy in new sheet

    Thank you o much for this. It worked perfectly. This has saved me a lot of time.
    Thanks again for the perfect solution

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Help with VBA Finding Duplicates and Copy in new sheet

    My pleasure.

+ 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. [SOLVED] Finding duplicates in column A and copying them to a new sheet
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 03:52 PM
  2. [SOLVED] VBA for finding Duplicates-multiple sheet
    By prashanthng in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-24-2014, 08:39 AM
  3. Replies: 2
    Last Post: 12-27-2013, 09:24 AM
  4. Macro to Copy duplicates to new sheet
    By carden2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-18-2013, 04:57 PM
  5. Copy Duplicates to new sheet
    By faisalS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2011, 05:52 PM
  6. Finding Duplicates adding them to another sheet
    By sentinela in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2009, 07:40 AM
  7. Finding Duplicates in Excel sheet
    By rahsa682 in forum Excel General
    Replies: 2
    Last Post: 03-16-2009, 04:26 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