Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rtek
 
Posts: n/a
Default subtracting (extracting non-duplicate items)HELP!!


Please help, is there any way to do this? i will try to explain..

I have 2 huge lists. One is " the Master list" which I have to extract
items that are not already listed on the second list . I don't want to
remove duplicate entries,I want to remove the duplicates completely. in
both lists, so that I only have items that are not in the second
list...I did some searchin but i would really appreciate if someone
helped me..

like this..

List 1:
# $ % & * ! @
List 2:
# & @

so I want to end up with:
$ % * !


--
rtek
------------------------------------------------------------------------
rtek's Profile: http://www.excelforum.com/member.php...o&userid=34483
View this thread: http://www.excelforum.com/showthread...hreadid=542432

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default subtracting (extracting non-duplicate items)HELP!!

Assuming that you have named the two ranges list1 and list2

Sub DeleteDuplicates()
Dim iRows As Long
Dim iStartRow As Long
Dim i As Long

iRows = Range("list1").Rows.Count
iStartRow = Range("list1").row
For i = iRows + iStartRow - 1 To iStartRow Step -1
If Not IsError(Application.Match(Cells(i, "A").Value,
Range("list2"), 0)) Then
Rows(i).Delete
End If
Next i
End Sub


--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"rtek" wrote in message
...

Please help, is there any way to do this? i will try to explain..

I have 2 huge lists. One is " the Master list" which I have to extract
items that are not already listed on the second list . I don't want to
remove duplicate entries,I want to remove the duplicates completely. in
both lists, so that I only have items that are not in the second
list...I did some searchin but i would really appreciate if someone
helped me..

like this..

List 1:
# $ % & * ! @
List 2:
# & @

so I want to end up with:
$ % * !


--
rtek
------------------------------------------------------------------------
rtek's Profile:

http://www.excelforum.com/member.php...o&userid=34483
View this thread: http://www.excelforum.com/showthread...hreadid=542432



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
broro183
 
Posts: n/a
Default subtracting (extracting non-duplicate items)HELP!!


Hi,

Have a look at Chip's page:
http://www.cpearson.com/excel/duplicat.htm


A "count if" from Chip's page could be applied to a column next to the
lists (in both spreadsheets), copied & pasted as values (to prevent
values changing after rows are deleted), the lists filtered for all
values in the countif column which are greater than zero, & then the
visible rows deleted.


hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=542432

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
Extracting the Duplicate Records Santhosh Excel Discussion (Misc queries) 1 April 25th 06 02:16 PM
Find duplicate records in Excel 2003 Wayne Excel Discussion (Misc queries) 1 March 29th 06 12:47 AM
Preventing duplicate data tillytee1 Excel Discussion (Misc queries) 2 March 20th 06 03:49 PM
Keeping duplicate rows Daniell Excel Worksheet Functions 2 April 18th 05 06:56 AM
Duplicate records in Excel Sheidsa Excel Discussion (Misc queries) 1 November 30th 04 12:23 AM


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