+ Reply to Thread
Results 1 to 3 of 3

Alter code to only delete data from Column A

  1. #1
    Forum Contributor
    Join Date
    11-09-2007
    Location
    USA
    MS-Off Ver
    2003
    Posts
    141

    Alter code to only delete data from Column A

    I have hundreds of dates in Column A. They go with the data in column B. I want to delete all duplicate dates except the top one of each set but not all the rows. Here is an example with Column A and Column B.

    1/2/09 M1928
    1/2/09 M1767
    1/3/09 M2765
    1/4/09 M8878
    1/4/09 M8827
    1/4/09 M1234
    1/5/09 M1556

    to look like this:

    1/2/09 M1928
    Blank M1767
    1/3/09 M2765
    1/4/09 M8878
    Blank M8827
    Blank M1234
    1/5/09 M1556

    (I had to use blank in place of a blank to make it appear correctly.)

    Here is the code I have been trying to alter:
    Please Login or Register  to view this content.
    Thanks.
    Last edited by ge0rge; 04-23-2009 at 09:38 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Alter code to only delete data from Column A

    Like so?
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Alter code to only delete data from Column A

    Cycling through all the cells can be slow. It's a lot faster if you copy the data into an array, process the array, then copy back into the spreadsheet.

    Please Login or Register  to view this content.

+ 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