Unique List of Names in list

Bundy

New Member
Joined
Jul 18, 2007
Messages
49
The Below statement should work with what I need, but is there a way of removing the spaces in the Unique1 list? I'm using the unique list for a dropbox & it hates spaces.


ListUnique.png


=IF(COUNTIF(INDIRECT(ADDRESS(ROW(List1),COLUMN(List1),1)&":"&ADDRESS(ROW(OFFSET(List1,ROW()-ROW(Unique1),0,1,1)),COLUMN(List1),4)),INDIRECT(ADDRESS(ROW(OFFSET(List1,ROW()-ROW(Unique1),0,1,1)),COLUMN(List1))))=1,INDIRECT(ADDRESS(ROW(OFFSET(List1,ROW()-ROW(Unique1),0,1,1)),COLUMN(List1))),"")

http://www.cpearson.com/excel/ListFunctions.aspx
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Assuming that A2:A11 contains the data, try...

B2:

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

...confirmed with CONTROL+SHIFT+ENTER

C2, copied down:

=IF(ROWS(C$2:C2)<=$B$2,INDEX($A$2:$A$11,SMALL(IF($A$2:$A$11<>"",IF(MATCH("~"&$A$2:$A$11,$A$2:$A$11&"",0)=ROW($A$2:$A$11)-ROW($A$2)+1,ROW($A$2:$A$11)-ROW($A$2)+1)),ROWS(C$2:C2))),"")

......confirmed with CONTROL+SHIFT+ENTER

Hope this helps!
 
Upvote 0
Ta! Making a unique list should be a built in excel function - I'm sure many people use it!
 
Upvote 0
Actually, the Advanced Filter can be used to return a list of unique values. Select 'Unique records only'.
 
Upvote 0
Advanced Filter was what I was looking at, but needed this list to update each time the sheet was opened.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top