+ Reply to Thread
Results 1 to 2 of 2

Deleting both duplicate rows in Excel.

  1. #1
    Registered User
    Join Date
    05-30-2007
    Posts
    5

    Deleting both duplicate rows in Excel.

    Hi,

    I need to write a formula that identifies any rows where the Contract # and Order # columns are duplicates, then deletes both duplicate rows. Thanks

    Michael

  2. #2
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    I think you need to write a macro. Start by switching on record macro, highlight a convenient blank row, delete it and stop the macro. You now have the code to delete a specific row.

    Now write some code that starts at row 1 and compares the 2 cells in question. If they are equal, delete the row. If they are not, do nothing and move to the next row.

    Please Login or Register  to view this content.
    checks if A1=A2

    the first 1 in each cells() needs to be count

    Please Login or Register  to view this content.
    you should be able to tailor to your situation
    Last edited by VBA Noob; 02-06-2008 at 09:10 AM.

+ 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