+ Reply to Thread
Results 1 to 5 of 5

Deleting duplicate rows

  1. #1
    Registered User
    Join Date
    11-12-2010
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    19

    Deleting duplicate rows

    Is there a way in 2007 to delete rows based on duplicate values in a single column? Thanks. The dups are number values

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Deleting duplicate rows

    Hi,

    Do you want to delete all duplicate values or just the second and subsequent occurencies?

    If the latter one way is to use a helper column and add the formula =COUNTIF($A$1:$A1,A1) and copy it down. Then filter the helper column for values >1 and select and delete all the filtered rows.

    If the former then use COUNTIF($A$1:$A$100,A1), change the last row 100 as appropriate and copy, filter, select and delete as above.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Deleting duplicate rows

    You could also attach a sample workbook so that its easier to understand what kind of data. And Richard's question -
    Do you want to delete all duplicate values or just the second and subsequent occurencies?
    is important too...

  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: Deleting duplicate rows

    there is a remove duplicates option on the data tab
    "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
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Deleting duplicate rows

    Thanks Martin,

    You've reminded me of something new in 2007 - which I suspect is often overlooked or forgotten, as I have demonstrated

    Regards

+ 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