+ Reply to Thread
Results 1 to 3 of 3

Arrangement

  1. #1
    Registered User
    Join Date
    02-20-2006
    Posts
    12

    Arrangement

    I have certain data in column A. Some quantities are repeating, some are repeating two times some 3 times and so on. I want duplicate entries to be removed in column A.


    With regards
    harvinder

  2. #2

    Re: Arrangement

    First, you have to sort all the records with respect to column A.
    then run this vba code to remove all the duplicates.

    Sub RemoveDuplicate()

    totalrows = ActiveSheet.UsedRange.Rows.Count
    For Row = totalrows To 2 Step -1
    If Cells(Row, 1).Value = Cells(Row - 1, 1).Value Then
    Rows(Row).Delete
    End If
    Next Row

    End Sub


  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    If you refer to your other post, and use my original formula for displaying duplicates, ie:

    =IF($A2=$A1,"",IF($A2<>INDIRECT("$A"&ROW()+COLUMN()-2),"",INDIRECT("$A"&ROW()+COLUMN()-2)))


    then you can copy the whole sheet, and paste special = Values (back over itsself), then remove column A

    --

    Quote Originally Posted by harvindersingh1
    I have certain data in column A. Some quantities are repeating, some are repeating two times some 3 times and so on. I want duplicate entries to be removed in column A.


    With regards
    harvinder

+ 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