Results 1 to 3 of 3

Removing duplicates

Threaded View

  1. #2
    Registered User
    Join Date
    05-11-2007
    Location
    Belgium
    Posts
    68

    first idea

    I just finished a more or less the same job.
    I tried two approaches but finally I used the easied one.

    1. FIRST SOLUTION.
    Place the worksheet function to determine the double entries. The COUNTIF takes a cell value and look if this appears in a range. If there is 1 or more appearance he set D (Duplicate) in a Column.
    range1 = "D3:D" & LastRow
    Sheet20.Range("A3:A" & LastRow).Formula = "=IF(COUNTIF(" & range1 & ",D3)>1,""D"",""F"")"
    With a short IIF you delete the D's for example.

    2. SECOND SOLUTION :
    A complete sub or function dat delete every double without writing the COUNTIF function to you sheet.

    If you want some more explanation or feedback or code, ask ....
    Last edited by matrixknow; 06-27-2007 at 08:17 AM.

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