+ Reply to Thread
Results 1 to 3 of 3

Moving Duplicate records to new sheets

  1. #1
    Registered User
    Join Date
    06-13-2015
    Location
    Columbus, Ohio
    MS-Off Ver
    2013
    Posts
    13

    Moving Duplicate records to new sheets

    Hello!

    I've been tasked with cleaning up the data in our database by identifying and deleting duplicates.
    My Excel file is a list of 1,032,153 rows with 10 columns. But it's not so simple as using the Remove Duplicates function.
    Here's what I need to do. Refer to the format example below:

    I've started by sorting Date Added (oldest to newest). The earliest record is the original record.
    - I need to identify all duplicates by matching Property Address (J) and THEN by matching Last Name (G). Some records have one duplicate, some may have up to 4 or 5. Rather than delete these duplicates, I need to move them to another sheet (Sheet 2).
    - So ideally, what I'm left with is Sheet 1 with all UNIQUE records (no records w/ matching property address AND name). From there, I need to run a pivot that would tell me that for each of the unique records in Sheet 1, how many matching records (same Property Address AND Last Name) on Sheet 2 are there?

    I've been trying for a while now and I just can't seem to get it.
    Assistance would be GREATLY appreciated!

    Let me know if you have any additional questions, thanks so much!

    De-Dupe Example.png

  2. #2
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Moving Duplicate records to new sheets

    Hi h2holbro22,
    _ I cannot help you with Formulas or Pivot Tables.
    _ Would you be interested in a VBA Solution?


    _ If so please supply me with similar test data again but do it a bit differently:
    _ I need to see what you have initially before anything is done ( again with reduced test data as you have done )
    _ we call this typically the “Before” or “Befores”). But then importantly I want to see hand filled result, which is what everything should then look like after running of the macro. We would call this the “After or Afters.
    _ I a clear picture (BUT NOT IMAGES ) of what you have before and what you want after with reduced test data.

    . So simply provide a clear before and after ... ( For example a "Before" and "After" sheet in an Excel File )

    To summarise.

    . The Before or Befores, should look just as it / they does before running of any macro.
    .
    . The After or Afters, should be hand filled by you so that it they / looks exactly as you want it to After running of any macro, based on the actual sample data in the Before / or Befores
    . Make sure there is just enough data to demonstrate your need. Remember to desensitize the data if necessary, but use the typical Format type and choose your data carefully so that it can be used to test all possible scenarios.
    ...


    Alan

    P.s. some ways to provide that info: ( Most people use . 2 )
    . 1 ) use the Forum Tools in my signature to produce screen shots we can copy to a spreadsheet ( NO IMAGES ! )
    . 2 ) Post Files
    To Attach a sample workbook:
    View Pic
    http://www.excelforum.com/members/da...ch-a-file.html
    http://tinyurl.com/oenwprw

    . 3 ) - Up left in the Thread editor is a Table icon. Click that, create an appropriately sized table and fill it in. (To get the table icon up in the Reply window you may need to click on the “Go Advanced” Button next to the Reply Button)

    . 4) Only as a very last resort, P.M. me and i will reply with my Email Addressee so you can send me a file
    ** To PM me, click on my name in the left hand margin when you are logged in, the rest should be obvious.
    Alan
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  3. #3
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Moving Duplicate records to new sheets

    Have you tried using Conditional Formatting which will mark Unique or Duplicate records with which you can copy the same records to the other sheet

+ 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. Moving Duplicate Records to Additional Columns
    By ghilborn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2015, 04:18 PM
  2. Replies: 1
    Last Post: 09-09-2014, 04:23 PM
  3. Finding/moving duplicate entries across multiple sheets
    By madbloke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2013, 02:13 PM
  4. Finding duplicate records across multiple sheets within a workbook
    By jimmyi189 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2012, 02:20 PM
  5. Replies: 1
    Last Post: 01-20-2012, 09:09 PM
  6. Moving records between sheets
    By madhrishi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-12-2009, 02:11 AM
  7. Moving records between sheets
    By madhrishi in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2009, 12:07 PM

Tags for this Thread

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