Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Julian
 
Posts: n/a
Default How do I exclude non-duplicates from an excel file?

Hi

I need to exclude non-duplicate entries from an excel file (yes,
non-duplicates, not duplicates). Any suggestions?

Thanks
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
lets assume your source list is in A1:A10
now enter the following formulas:
B1: =A1
B2: enter the array formula (committed with cTRL+sHIFT+ENTER):
=INDEX($A$1:$A$10,MATCH(1,COUNTIF($A$1:$A$10,$A$1: $A$10)
*(COUNTIF(B$1:B1,$A$1:$A$10)=0),0))

and copy this down unless you get an error message

--
Regards
Frank Kabel
Frankfurt, Germany

"Julian" schrieb im Newsbeitrag
...
Hi

I need to exclude non-duplicate entries from an excel file (yes,
non-duplicates, not duplicates). Any suggestions?

Thanks


  #3   Report Post  
Tushar Mehta
 
Posts: n/a
Default

I am not sure what Frank's formula is meant to do, but here's what I
would do to identify the non-duplicates. Suppose your list is in
column A. Further suppose A1 is a header cell and the data start in
A2. Then, in B1 enter some kind of a header, say Unique. In B2, enter
the formula =COUNTIF(A:A,A2). Copy it as far down B as you have data
in A.

Any cell that has a 1 in column B represents an unique entry in A. You
can use XL's autofilter capability to identify all the unique entries.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi

I need to exclude non-duplicate entries from an excel file (yes,
non-duplicates, not duplicates). Any suggestions?

Thanks

  #4   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi Tushar
my formula should (and it least it worked in my test scenario) extract
only the values which occur once in A1:A10. I only make one mistake
with the formula in B1
B1 should contain the array formula:
=INDEX($A$1:$A$10,MATCH(1,COUNTIF($A$1:$A$10,$A$1: $A$10),0))

So for the example set of data
1
1
2
3
4
4
5
6
6
7

my formulas would return
2
3
5
7


--
Regards
Frank Kabel
Frankfurt, Germany

"Tushar Mehta" schrieb im
Newsbeitrag
...
I am not sure what Frank's formula is meant to do, but here's what I
would do to identify the non-duplicates. Suppose your list is in
column A. Further suppose A1 is a header cell and the data start in
A2. Then, in B1 enter some kind of a header, say Unique. In B2,

enter
the formula =COUNTIF(A:A,A2). Copy it as far down B as you have data
in A.

Any cell that has a 1 in column B represents an unique entry in A.

You
can use XL's autofilter capability to identify all the unique

entries.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi

I need to exclude non-duplicate entries from an excel file (yes,
non-duplicates, not duplicates). Any suggestions?

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Excel 2000 file when opened in Excel 2003 generates errors? Doug Excel Discussion (Misc queries) 13 December 25th 04 10:20 PM
double click a xls file and start Excel but without the file Danyi, Attila Excel Discussion (Misc queries) 2 December 22nd 04 02:19 PM
Saving a Excel 97 file into Excel 2003 file Wil Excel Discussion (Misc queries) 1 December 13th 04 11:51 PM


All times are GMT +1. The time now is 07:24 PM.

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"