Results 1 to 3 of 3

Macro to delete duplicate rows based on empty cells

Threaded View

100d Macro to delete duplicate... 08-24-2011, 01:44 PM
yay_excel Re: Macro to delete duplicate... 08-24-2011, 05:20 PM
martindwilson Re: Macro to delete duplicate... 08-24-2011, 05:42 PM
  1. #1
    Registered User
    Join Date
    08-24-2011
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2010
    Posts
    1

    Macro to delete duplicate rows based on empty cells

    Hi all, I was wondering if someone can help me with my excel problem using a macro.


    A | B | C
    INV # TRANS # LEDGER #
    ---------- ---------- -------------
    1 12345 T12345 LED123
    2 12345 T12345
    3 67890 T67890 LED123
    4 67890 T67890
    5 88888 T88888

    Based on above example, I would like to be able to delete row 2 and row 4 because row 2 and 4 are duplication of row 1 and 3 respectively. Notice that C2 and C4 is empty. I do not want to delete row 5 because there isn’t a duplication and column C5 is empty. So once I run the macro it would look like this:


    A | B | C
    INV # TRANS # LEDGER #
    ---------- ---------- -------------
    1 12345 T12345 LED123
    2 67890 T67890 LED123 <-- this used to be row 3 from above example
    3 88888 T88888 <-- this used to be row 5 from above example


    Right now I am deleting these about 1500 rows manually and it’s very time consuming. Hopefully this makes sense to you and you are able to help.

    Thanks.
    Last edited by 100d; 08-24-2011 at 03:30 PM. Reason: More descriptive title to be in compliance with the rules

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