Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Formula (not adv. filter) to list unique values from list

Howdy all,

I have a list of names which appear multiple times in a column with about
20,000 entries.

I want to create a list of the unique names on a new sheet, but I don't want
to use the advanced filter technique because I want to be able to refresh
this list when new data is entered.

Thanks for your time and attention!

Brian


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default Formula (not adv. filter) to list unique values from list

In article ,
"Brian" wrote:

Howdy all,

I have a list of names which appear multiple times in a column with about
20,000 entries.

I want to create a list of the unique names on a new sheet, but I don't want
to use the advanced filter technique because I want to be able to refresh
this list when new data is entered.

Thanks for your time and attention!

Brian


Let's assume that A2:A100 contains the data. Here's two possibilities.
The first one uses a helper column and should be more efficient.

[Option 1]

B1: 0

(Enter a 0 in B1)

B2, copied down:

=IF(A2<"",IF(ISNA(MATCH(A2,$A$1:A1,0)),LOOKUP(9.9 9999999999999E+307,$B$1
:B1)+1,""),"")

D2:

=LOOKUP(9.99999999999999E+307,B:B)

E2, copied down:

=IF(ROWS(E$2:E2)<=$D$2,INDEX($A$2:$A$100,MATCH(ROW S(E$2:E2),$B$2:$B$100,0
)),"")

[Option 2]

C2, confirmed with CONTROL+SHIFT+ENTER:

=SUM(IF(FREQUENCY(IF(A2:A100<"",MATCH("~"&A2:A100 ,A2:A100&"",0)),ROW(A2:
A100)-ROW(A2)+1),1))

D2, confirmed with CONTROL+SHIFT+ENTER, and copied down:

=IF(ROWS(D$2:D2)<=$C$2,INDEX($A$2:$A$100,SMALL(IF( FREQUENCY(IF($A$2:$A$10
0<"",MATCH("~"&$A$2:$A$100,$A$2:$A$100&"",0)),ROW ($A$2:$A$100)-ROW($A$2)
+1),ROW($A$2:$A$100)-ROW($A$2)+1),ROWS(D$2:D2))),"")

--
Domenic
http://www.xl-central.com
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Formula (not adv. filter) to list unique values from list

Thanks Domenic, works like a charm.


"Domenic" wrote in message
...
In article ,
"Brian" wrote:

Howdy all,

I have a list of names which appear multiple times in a column with about
20,000 entries.

I want to create a list of the unique names on a new sheet, but I don't
want
to use the advanced filter technique because I want to be able to refresh
this list when new data is entered.

Thanks for your time and attention!

Brian


Let's assume that A2:A100 contains the data. Here's two possibilities.
The first one uses a helper column and should be more efficient.

[Option 1]

B1: 0

(Enter a 0 in B1)

B2, copied down:

=IF(A2<"",IF(ISNA(MATCH(A2,$A$1:A1,0)),LOOKUP(9.9 9999999999999E+307,$B$1
:B1)+1,""),"")

D2:

=LOOKUP(9.99999999999999E+307,B:B)

E2, copied down:

=IF(ROWS(E$2:E2)<=$D$2,INDEX($A$2:$A$100,MATCH(ROW S(E$2:E2),$B$2:$B$100,0
)),"")

[Option 2]

C2, confirmed with CONTROL+SHIFT+ENTER:

=SUM(IF(FREQUENCY(IF(A2:A100<"",MATCH("~"&A2:A100 ,A2:A100&"",0)),ROW(A2:
A100)-ROW(A2)+1),1))

D2, confirmed with CONTROL+SHIFT+ENTER, and copied down:

=IF(ROWS(D$2:D2)<=$C$2,INDEX($A$2:$A$100,SMALL(IF( FREQUENCY(IF($A$2:$A$10
0<"",MATCH("~"&$A$2:$A$100,$A$2:$A$100&"",0)),ROW ($A$2:$A$100)-ROW($A$2)
+1),ROW($A$2:$A$100)-ROW($A$2)+1),ROWS(D$2:D2))),"")

--
Domenic
http://www.xl-central.com



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Formula (not adv. filter) to list unique values from list

Hi,

You can also try this. Assume your list is in A2:A5. In B2, enter
=IF(COUNTIF($A$2:$A2,A2)1,0,MAX($B$1:B1)+1) and copy down till B5. In cell
C2, array enter (Ctrl+Shift+Enter)
=IF(MIN(IF((B2:B50)*(B2:B5MAX($C$1:C1)),B2:B5)) 0,MIN(IF((B2:B50)*(B2:B5MAX($C$1:C1)),B2:B5)),"" )
and copy down.

Now in cell D2, enter
=IF(ISERROR(INDEX($A$2:$B$5,MATCH(C2,$B$2:$B$5,0), 1)),"",INDEX($A$2:$B$5,MATCH(C2,$B$2:$B$5,0),1))
and copy down

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Brian" wrote in message
...
Howdy all,

I have a list of names which appear multiple times in a column with about
20,000 entries.

I want to create a list of the unique names on a new sheet, but I don't
want to use the advanced filter technique because I want to be able to
refresh this list when new data is entered.

Thanks for your time and attention!

Brian

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
list unique values in a list bobby769 Excel Worksheet Functions 2 October 16th 08 03:26 AM
Identify & List unique values from a list using functions/formulas momtoaj Excel Worksheet Functions 3 May 31st 07 06:18 PM
Count unique values and create list based on these values vipa2000 Excel Worksheet Functions 7 August 5th 05 01:17 AM
filter list of text for unique entries using formulea The Nephalim Excel Worksheet Functions 1 June 17th 05 12:16 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


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