sorting data in order

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

ceemo

Hi,

I have the following formula to sort my data in acsending order.



=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))

I am after two variations of this. One to sort in descending order and
another to sort in acsending order if the cell next to it (column b)
contains "Yes"

Please can you help,

Help always appreciated,
 
ceemo said:
Hi,

I have the following formula to sort my data in acsending order.



=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))

I am after two variations of this. One to sort in descending order and
another to sort in acsending order if the cell next to it (column b)
contains "Yes"

hy,
try to substitute
COUNTIF($A$1:$A$6,"<"&$...
to:
COUNTIF($A$1:$A$6,"IF(B1="yes","<",">")&$...

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

SORT data containing formula 5
Pivot table sort 2
sorting data 3
unique alpha's in order 2
Custom Sort 1
Rank order with conditions 3
Pivotting - T. Valko 1
sort column corresponding to second column 4

Back
Top