A formula to sort, without duplicating?

stir-crazy

New Member
Joined
Dec 28, 2005
Messages
29
Hi there,

I'm trying to figure out how I can post many values in one column, and then have a formula in an adjacent column return the values to me, sorted and without duplicating values.

So, if I pasted as many as 200 random, numbers in column A, some of which are duplicates (1, 5355, 5, 5, 204, 5385, 5355, etc.), can I have column B return the values, sorted and without repeating (1, 5, 204, 5355, 5385)?

I've been playing with AND, FALSE and COUNTIF commands, but I haven't been doing anything well except to confuse myself. AAAAAAA!

Thanks so much in advance!
 
Or, trying……

Using Yogi's table, in B2 enter and copied down

1] Non array formula :

=IF(MAX($A$2:$A$8)=MAX(B$1:B1),"",SMALL($A$2:$A$8,COUNTIF($A$2:$A$8,"<="&B1)+1))

2] Array formula :

2.1] {=IF(MAX($A$2:$A$8)=MAX(B$1:B1),"",SMALL(IF(MATCH($A$2:$A$8,$A$2:$A$8,0)=ROW($A$2:$A$8)-ROW(A$1),$A$2:$A$8),ROW(1:1)))}

2.2] {=IF(MAX($A$2:$A$8)=MAX(B$1:B1),"",SMALL(IF(FREQUENCY($A$2:$A$8,$A$2:$A$8),$A$2:$A$8),ROW(1:1)))}

2.3] {=IF(MAX($A$2:$A$8)=MAX(B$1:B1),"",MIN(IF(COUNTIF(E$1:E1,$A$2:$A$8)=0,$A$2:$A$8)))}

Regards
Bosco
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,215,433
Messages
6,124,861
Members
449,195
Latest member
MoonDancer

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