sorting data

  • Thread starter Thread starter ceemo
  • Start date Start date
C

ceemo

hi i have the following which sorts my data but would like it to only
include unique records. can and how would i do this?

INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
 
If you want to create a list of unique items, look at...

Data>Filter>Advanced Filter>Copy to another location>Unique Records Only

HTH,
 
Try...

B1, copied down:

=INDEX($A$1:$A$6,MATCH(SMALL(IF(($A$1:$A$6<>"")*(COUNTIF(OFFSET($A$1,0,0,ROW($A$1:$A$6)-ROW($A$1)+1),$A$1:$A$6)=1),COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),ROWS($B$1:B1)),COUNTIF($A$1:$A$6,"<"&$A$1:$A$6),0))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this heps!
 
ceemo said:
hi i have the following which sorts my data but would like it to only
include unique records. can and how would i do this?

INDEX($A$1:$A$6,MATCH(SMALL(IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$
A$6)),ROW(A1)),IF($A$1:$A$6="","",COUNTIF($A$1:$A$6,"<"&$A$1:$A$6)),0))
hy,
try to:
=INDEX(text,MATCH(SMALL(IF(MATCH(text,text,)=ROW(text),1)*COUNTIF(text,"<="&
text),ROW(text)+ROWS(text)-SUM(1/COUNTIF(text,text))),COUNTIF(text,"<="&text
),))

text is your range
you must enter this formula as array fomrulas in a range.

ivano
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top