Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Eliminating duplicated data completely or something similar

Say I have 2 lists. One of which we'll call citizens, the other we'll call
enemies. everyone on the citizens list should also be included in the Enemies
list, but they're not. I'm trying to have it list the names that do not show
on the enemies list. How would I go about doing this? Is it an INDEX function
or a MATCH function? Been tearing my hair out on this one. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 793
Default Eliminating duplicated data completely or something similar

One way is to use VLOOKUP
Assuming Citizens are in Col A of Sheet1 and Enemies in Col A of sheet2
Enter this in B1 of Sheet1 and copy down till end of your data
=VLOOKUP(A1,Sheet2!A:A,2,False)

Now filter Col B on #N/A... You will get the list of Citizens who are NOT in
Enemies list.

"NickySams" wrote:

Say I have 2 lists. One of which we'll call citizens, the other we'll call
enemies. everyone on the citizens list should also be included in the Enemies
list, but they're not. I'm trying to have it list the names that do not show
on the enemies list. How would I go about doing this? Is it an INDEX function
or a MATCH function? Been tearing my hair out on this one. Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Eliminating duplicated data completely or something similar

Hi,

You may try this. Suppose Citizens is in range D3:D11 (heading included)
and enemies is in range E3:E11 (heading included). In cell D15, type
Condition. In cell D16, use the formula =COUNTIF($E$4:$E$11,D4)=0. Now go
to filter Advanced Filter and select "Copy to another location". In the
list range, select D3:D11. In the criteria, select D15:D16 and in the copy
to box , select any blank range, say D20:D27 and now click on OK.

Please note that this is not a dynamic solution I.e. if any entries change
in the 2 lists, you will have to rerun the advanced filter.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"NickySams" wrote in message
...
Say I have 2 lists. One of which we'll call citizens, the other we'll call
enemies. everyone on the citizens list should also be included in the
Enemies
list, but they're not. I'm trying to have it list the names that do not
show
on the enemies list. How would I go about doing this? Is it an INDEX
function
or a MATCH function? Been tearing my hair out on this one. Thanks!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Eliminating duplicated data completely or something similar

Another play ..
Citizens listed in A1 down, Enemies in B1 down
In C1: =IF(A1="","",IF(COUNTIF(B:B,A1),"",ROW()))
In D1: =IF(ROW()COUNT(C:C),"",INDEX(A:A,SMALL(C:C,ROW()) ))
Copy C1:D1 down to cover the max expected extent of data in col A.
Hide/Minimize col C. Col D auto-returns the list of col A (citizens) NOT
found in col B (Enemies), with results all neatly packed at the top.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---
"NickySams" wrote:
Say I have 2 lists. One of which we'll call citizens, the other we'll call
enemies. everyone on the citizens list should also be included in the Enemies
list, but they're not. I'm trying to have it list the names that do not show
on the enemies list. How would I go about doing this? Is it an INDEX function
or a MATCH function? Been tearing my hair out on this one. Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Eliminating duplicated data completely or something similar

Amazing. Thank you. I knew it was something not too difficult.

"Sheeloo" wrote:

One way is to use VLOOKUP
Assuming Citizens are in Col A of Sheet1 and Enemies in Col A of sheet2
Enter this in B1 of Sheet1 and copy down till end of your data
=VLOOKUP(A1,Sheet2!A:A,2,False)

Now filter Col B on #N/A... You will get the list of Citizens who are NOT in
Enemies list.

"NickySams" wrote:

Say I have 2 lists. One of which we'll call citizens, the other we'll call
enemies. everyone on the citizens list should also be included in the Enemies
list, but they're not. I'm trying to have it list the names that do not show
on the enemies list. How would I go about doing this? Is it an INDEX function
or a MATCH function? Been tearing my hair out on this one. Thanks!

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
How to compare similar entries, NOT duplicated ones? Serapk New Users to Excel 3 January 7th 09 03:51 PM
How can I delete duplicated data tweacle[_5_] Excel Worksheet Functions 1 December 20th 07 12:59 AM
duplicated external data dany Excel Discussion (Misc queries) 1 March 21st 07 08:13 AM
Duplicated data Louise Excel Worksheet Functions 3 July 1st 05 01:36 PM
Eliminating data repitition Graham Excel Discussion (Misc queries) 1 June 8th 05 03:26 PM


All times are GMT +1. The time now is 09:15 AM.

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"