LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Remove duplicates found in master list

Yup! Perfect! Thanks Otto!

"Otto Moehrbach" wrote:

Mike
This macro should do what you want. HTH Otto
Sub RemoveDups()
Dim RngB As Range
Dim RngA As Range
Dim i As Range
Set RngA = Range("A1", Range("A" & Rows.Count).End(xlUp))
Set RngB = Range("B1", Range("B" & Rows.Count).End(xlUp))
For Each i In RngB
If Not RngA.Find(What:=i.Value, Lookat:=xlWhole) Is Nothing Then
_
i.Delete Shift:=xlUp
Next i
End Sub
"Mike" wrote in message
...
Hey guys!

I have 2 columns of data. In column A is my master list of names and in
column B is a list of names that I would like to compare against my master
list in column A. If the name is found in column B that exists in column
A,
remove the name from column B. Can this done in excel?

Thanks!!
Mike




 
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
Remove Duplicates; How can I get a list of items removed? Kjenkins Excel Discussion (Misc queries) 2 June 19th 07 10:57 PM
how to remove duplicates ONLY within the same category Landa Excel Discussion (Misc queries) 5 April 26th 07 10:04 AM
Remove duplicates Tuttamay77 Excel Discussion (Misc queries) 4 May 12th 06 10:56 PM
compare two columns and remove duplicates Moni39 Excel Worksheet Functions 3 May 5th 05 06:08 PM
How to remove duplicates from a list and copy new list to new colu Chance Excel Worksheet Functions 2 April 23rd 05 05:21 AM


All times are GMT +1. The time now is 11:59 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"