Closed Thread
Results 1 to 2 of 2

Code to remove duplicates and organize rows.

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Code to remove duplicates and organize rows.

    Im looking for some help creating some complicated module filtering code. The sheet will eventually contain a huge amount of data, so each time a row gets filtered the G cell will equal "yes" (that way only unfiltered rows will get processed, and the code will only run if unfiltered rows are present). The user adds new rows to the bottom, and then this code should filter them in.

    The code will organize the sheet EquipmentData in the following way:
    1- Remove any duplicated rows (from row 3 on), where Columns A and B match, giving priority to keep rows where Column E is not equal to "Manual". If neither have "Manual" in Column E then the higher row gets priority to stay. In cases where A is blank (and B matches) then it should only filter out if column C also matches (the same method of prioritizing applies).
    2- Then organize the rows (from 3 on) by Column A in ascending alphabetical order (there will be some cases where A is blank. These rows should end up all together at the top)
    3- When a row has been filtered in, the G cell should equal "yes".


    Below is the code I started with to check if any new records have been added to the sheet that need filtering, but the actual filtering part is over my head:

    Please Login or Register  to view this content.
    NB This sheet does contain conditional formatting which I want to protect.

    Thanks,
    James

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Code to remove duplicates and organize rows.

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula or VBA code to remove duplicates
    By james19 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2014, 05:15 AM
  2. [SOLVED] Find duplicates rows, sum cells then remove duplcate rows
    By Wagstaff in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-22-2013, 09:37 AM
  3. Replies: 1
    Last Post: 10-23-2012, 09:12 AM
  4. Need VBA code to remove entries if there are duplicates (remove them totally)
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2012, 12:50 AM
  5. Remove Duplicates Code
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-18-2011, 04:36 PM

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