+ Reply to Thread
Results 1 to 9 of 9

Trying to find duplicate, copy and paste certain unique values, and remove the duplicates

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    39

    Trying to find duplicate, copy and paste certain unique values, and remove the duplicates

    Hello, Thank you for your time and expertise in advance.
    I have a workbook that uses a macro to aggregate attendance data from several other workbooks - the workbook is attached. I would like to use the email address column to search for duplicates, copy and paste attendance information, and then delete the duplicate row (and repeat this several times for each email address).

    With the code I have come up, which may be considered beginner, I am getting this error:

    1. Error comes up saying "Object required" (in the section highlighted)
    I would really appreciate someone pointing me in the right direction (for me to change the code) or posting corrected code.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by adamstarr12; 06-23-2014 at 10:18 AM. Reason: Added sample data and updated error

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    Welcome to the board!

    In the future, please fill in your sample sheet with data. We're already busy and don't have time to try guess at a data set.

    Replace this section.
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    08-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    @Tinbendr

    Hey David,

    Thank you for the help and I apologize for not including sample data.

    Unfortunately, I am getting a new error, and I have included sample data.

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    Because your data was all the same, I still had to modify it so I could test it.

    You can easily fill a column with unique data by using the column header along with row.
    Please Login or Register  to view this content.
    will return FirstName1. Drag down and you're done. Repeat as required for other columns.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-23-2014
    Location
    France
    MS-Off Ver
    2010
    Posts
    18

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    Hi!
    I'm supposed to find duplicates in sheet_1 Q6:Q251 and copy one of each to sheet_2 D6:D243 as well as the rest of values without duplicate.
    In a sheet_1 B6:B251 I have values related to Q6:Q251 and I have to copy each of them to sheet_2, E6:I6 in the same row as the related duplicate (I'll have max 5 duplicates).
    Is this even possible?

    Thank you in advance!

  6. #6
    Registered User
    Join Date
    08-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    @ Tinbendr

    David,

    The macro you wrote does a great job at combining the data, thank you. There one thing I would really appreciate though ..

    I would really like the uniqueparse macro to place the data set (w/ all duplicates combined) in place of the old data set. I updated the attached workbook to have a before and after. I'm really sorry my original data set didn't show this.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    @ Jele007, welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    At the bottom, add these two lines.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    06-23-2014
    Location
    France
    MS-Off Ver
    2010
    Posts
    18

    Re: Trying to find duplicate, copy and paste certain unique values, and remove the duplica

    @ FDibbins

    Sorry, it won't repeat!
    I'll start my own thread

+ 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] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  2. [SOLVED] Find Duplicates and remove the duplicate entry comparing two columns
    By retrospikz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-04-2013, 03:17 AM
  3. [SOLVED] Unique Values Without Remove Duplicates
    By Camel in forum Excel General
    Replies: 25
    Last Post: 07-20-2012, 04:17 AM
  4. Replies: 1
    Last Post: 05-24-2011, 04:04 AM
  5. Macro to remove duplicates values and keep unique values bases on multiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2011, 04:37 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