+ Reply to Thread
Results 1 to 5 of 5

If there is a duplicate in column A delete that row

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    323

    If there is a duplicate in column A delete that row

    Hi,

    Column A is mostly unique characters, but sometimes the characters can repeat up to 7 times in that column. I need a script that will keep just one unique character and its data in that row and delete any rows where it appears again.

    I have tried a few different scripts in the forum that were close to what I wanted but sadly they did not work.

    Thanks for any help.

    David

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: If there is a duplicate in column A delete that row

    Try this. Change $A$1:$E$ to your range

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    323

    Re: If there is a duplicate in column A delete that row

    The above works perfectly for 2007, is there a 2003 version?

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: If there is a duplicate in column A delete that row

    Yea short and sweet, but only works in 2007 or greater. Try this for 2003

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    323

    Re: If there is a duplicate in column A delete that row

    Perfect, Thanks again Mike!

+ 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