+ Reply to Thread
Results 1 to 26 of 26

Remove Duplicates

Hybrid View

meggles Remove Duplicates 01-14-2010, 04:31 AM
pike Re: Remove Duplicates 01-14-2010, 04:46 AM
meggles Re: Remove Duplicates 01-15-2010, 04:20 AM
pike Re: Remove Duplicates 01-15-2010, 04:30 AM
pike Re: Remove Duplicates 01-15-2010, 04:38 AM
meggles Re: Remove Duplicates 01-15-2010, 04:41 AM
pike Re: Remove Duplicates 01-15-2010, 04:54 AM
meggles Re: Remove Duplicates 01-15-2010, 05:29 AM
pike Re: Remove Duplicates 01-15-2010, 05:48 AM
meggles Re: Remove Duplicates 01-18-2010, 05:38 AM
pike Re: Remove Duplicates 01-18-2010, 05:50 AM
meggles Re: Remove Duplicates 01-18-2010, 05:53 AM
pike Re: Remove Duplicates 01-18-2010, 07:00 AM
meggles Re: Remove Duplicates 01-18-2010, 07:04 AM
pike Re: Remove Duplicates 01-18-2010, 07:13 AM
meggles Re: Remove Duplicates 01-18-2010, 07:30 AM
pike Re: Remove Duplicates 01-18-2010, 07:49 AM
meggles Re: Remove Duplicates 01-18-2010, 08:00 AM
pike Re: Remove Duplicates 01-18-2010, 08:11 AM
meggles Re: Remove Duplicates 01-18-2010, 08:33 AM
pike Re: Remove Duplicates 01-18-2010, 08:39 AM
meggles Re: Remove Duplicates 01-18-2010, 09:41 AM
pike Re: Remove Duplicates 01-18-2010, 07:08 PM
meggles Re: Remove Duplicates 01-19-2010, 02:01 AM
pike Re: Remove Duplicates 01-19-2010, 02:05 AM
pike Re: Remove Duplicates 01-22-2010, 08:18 AM
  1. #1
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Remove Duplicates

    Oh... I forgot about the white spaces
    use
    Option Explicit
    Sub ptestu()
        Dim p!, i!, k(), e
        With Range("a1", Range("a" & Rows.Count).End(xlUp)).Resize(, 1)
            e = .Value
        End With
        ReDim k(UBound(e, 1), 1)
        With CreateObject("Scripting.Dictionary")
            .CompareMode = vbTextCompare
            For i = 1 To UBound(e, 1)
                If Not IsEmpty(e(i, 1)) Then
                    e(i, 1) = Trim(e(i, 1))
                    If Not .exists(e(i, 1)) Then
                    k(p, 0) = e(i, 1)
                      .Add e(i, 1), p
                      p = p + 1
                      End If
             End If
            Next
           End With
    Range("B1").Resize(p, 1).Value = k
     End Sub
    Last edited by pike; 01-15-2010 at 04:42 AM.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  2. #2
    Registered User
    Join Date
    01-22-2008
    Posts
    50

    Re: Remove Duplicates

    morning - an example of duplicates are in row 131 (Find- ASSY-717655)

    the text you've written below, is that a macro? how do I execute (i'm only vaguely comfortable with macros)

    cheers

+ 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