+ Reply to Thread
Results 1 to 6 of 6

removing duplicate rows

  1. #1
    Registered User
    Join Date
    04-05-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    71

    removing duplicate rows

    G'Day,

    I've searched the forums for a VBA macro that will remove entire rows if data in column K is duplicated. I've found close matches but am having trouble tweaking code to suit my situation.

    Can anyone help me with this task?



    Thanks,
    Xtopher

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: removing duplicate rows

    This will do it. Just select any cell in any column and it will move down the column and delete all the duplicates. Be careful!!!

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: removing duplicate rows

    G'day mate

    This solution is excellent as the data doesn't need to be sorted - just change the column reference to suit.

    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: removing duplicate rows

    have you tried advance filter ,it will do just that
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    04-05-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    71

    Re: removing duplicate rows

    G'day lads. Thanks for the tips and code snippets. I'll give them a crank this arvo as soon as I get a chance.

    I've not tried the advanced filter as I didn't know it had a feature in it to remove duplicates. Please advise???



    Regards,
    Xtopher

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: removing duplicate rows

    excell2007 has a built in remove duplicates
    see here method 5
    http://www.mrexcel.com/tip138.shtml
    despite the warning!
    "This method is highly destructive! Make a copy of your dataset before you do this!"
    this is also true if you use custom vba and the same thing is recomended

+ 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