+ Reply to Thread
Results 1 to 2 of 2

Removing duplicate rows, based on ColumnA

  1. #1
    Registered User
    Join Date
    04-24-2009
    Location
    San Francisco, Ca
    MS-Off Ver
    Excel 2003
    Posts
    28

    Removing duplicate rows, based on ColumnA

    Hi guys,

    Probably a simple question but I cant figure it out. I want to remove the second duplicate record based on ColumnA. Currently I have a spreadsheet that looks like this....

    Field1 Field2
    A XTHFKJFNR
    A GMGHFNBG
    B HDHDNGW
    B WHGEWEY
    C W4YHJEH
    C WHGWHWWE
    D PLOJGH
    E SGSHGWE
    F SHWEH
    F WEW4Y34Y


    As you can see there some are duplicate records in Column A. How can I delete the second record for each duplicate? BTW the spreadsheet I have is 700 rows long, hence the need for a formula or something of that nature. Thanks

    EDIT*** when I submitted it, the data got scrunched together, this was copy and pasted from Excel. If its not obvious, Column A (Field 1) only contains a single letter

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing duplicate rows, based on ColumnA

    In Column C
    =IF(COUNTIF($A$1:A1,A1)>1,"Delete","") copied down
    Then filter on column C "Delete" and delete all visible rows
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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