LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Find Duplicates Variant

Thanks Bob for such a quick reply, I'll try that out

"Bob Phillips" wrote:

Public Sub ProcessData()
Dim iLastRow As Long
Dim i As Long

With ActiveSheet

iLastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = iLastRow To 1 Step -1
If Application.CountIf(Range("A1:A" & iLastRow), .Cells(i,
"A").Value) < 3 Then
.Rows(i).Delete
End If
Next i

End With

End Sub


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Ladymuck" wrote in message
...
Contrary to most people, I want to keep the duplicates in my spreadsheet!
What I need to do is basically keep anything that occurs 3 or more times.

I
have had a go at amending the code posted up so far but am not having a

huge
amount of luck - would anyone be kind enough to help?

Many thanks!




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find the Dimensions of a Variant Range Frans Verhaar Excel Programming 4 June 14th 06 08:54 PM
using find with variant? Don S Excel Programming 4 August 16th 05 04:52 PM
Find Variant StephanieH Excel Programming 7 February 23rd 05 03:48 PM
Eliminating duplicates from a variant variable smokiibear Excel Programming 1 December 21st 04 11:38 PM
Find duplicates R. Choate Excel Discussion (Misc queries) 5 November 28th 04 10:14 PM


All times are GMT +1. The time now is 04:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"