+ Reply to Thread
Results 1 to 3 of 3

Move and Group duplicate data into a table on same sheet?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    college park, maryland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Move and Group duplicate data into a table on same sheet?

    Hello, I would like to be able to have excel search a column of data for duplicates and then move those duplicates into a seperate table. Thanks in advance for you help.

    For example:
    Column A
    123
    222
    456
    123
    778
    222


    New table would have:
    123
    222

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Move and Group duplicate data into a table on same sheet?

    Hi

    Try this

    Sub aaa()
      Set Rng = Range(Range("A1"), Cells(Rows.Count, 1).End(xlUp))
      For Each ce In Rng
        If WorksheetFunction.CountIf(Rng, ce) > 1 And WorksheetFunction.CountIf(Range("C:C"), ce) = 0 Then
          Cells(Rows.Count, 3).End(xlUp).Offset(1, 0).Value = ce
        End If
      Next ce
    End Sub
    rylo

  3. #3
    Registered User
    Join Date
    11-16-2012
    Location
    college park, maryland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Move and Group duplicate data into a table on same sheet?

    Thanks! I ended up using a vlookup over the weekend before I saw you reply.

+ 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