Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default separate 2 different lists

I have 2 lists of names and emails, A and B. List A includes list B. Anyone
knows how to separate them quickly. Meaning list A minus list B?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default separate 2 different lists

Dim LastRow As Long
Dim i As Long

With ActiveSheet

LastRow = .cells(.Rows.Count, "A").End(xlUp).Row
For i = LastRow To 1 Step -1

If Not IsError(Application.Match(.cells(i, "A").Value,
..Columns(2),0)) then

.Cells(i, "A").Delete Shift:=xlShiftUp
End If
Next i
End With

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"rlynx" wrote in message
...
I have 2 lists of names and emails, A and B. List A includes list B. Anyone
knows how to separate them quickly. Meaning list A minus list B?



Reply
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
compare and merge lists in separate worksheets EAH Excel Worksheet Functions 1 March 7th 08 05:03 AM
Break master list up into lists in separate worksheets Prashant Rao Excel Discussion (Misc queries) 0 September 20th 07 08:28 PM
drop-down lists print on a separate page in excel Kayh2 Excel Worksheet Functions 4 January 20th 06 09:51 PM
Formula to compare two lists and separate non-recurring items? Tennessee Excel Worksheet Functions 2 November 10th 05 06:32 PM
How to compare the lists in two columns & separate odd one ? Nikhil Excel Discussion (Misc queries) 2 June 13th 05 02:41 PM


All times are GMT +1. The time now is 03:41 AM.

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

About Us

"It's about Microsoft Excel"