+ Reply to Thread
Results 1 to 3 of 3

macro to delete the second occurence

  1. #1
    Registered User
    Join Date
    12-17-2007
    Posts
    7

    macro to delete the second occurence

    I am trying to make a macro that detects and then deletes the second copy of data in a spreadsheet. The data comes from the record of two identical tapes, so that the only thing that is different in the information of the second copy is the tape number. I need to identify the repeat using a sequence number and copy the that tape number beside the first instead of underneath.

    please if anyone has any ideas so I can try and rig something, that would be very helpful.

  2. #2
    Registered User
    Join Date
    12-18-2007
    Location
    Denver CO, Casper WY, Essex MT, or where ever the motor home is sitting.
    Posts
    5
    Perhaps a sample of the data would make it easier to see your issue. I have done this many times in many different ways. If the data is normally unique enough a three column sort can line up the dups and then a formula entered in an inserted row that looks for dups and returns a 1 on the first and a 2 on the dup. The data can then be sorted on the inserted column and the dups fall to the bottom. This works well with smaller data sets or ones that only have to be cleaned once in a while. If this is a regular task, then code is the way to go.

    Paul

  3. #3
    Registered User
    Join Date
    12-17-2007
    Posts
    7
    This file show the before and after. scroll down to see that the second half is deleted.
    Attached Files Attached Files

+ 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