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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

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