ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sorting data in order (https://www.excelbanter.com/excel-worksheet-functions/33979-sorting-data-order.html)

ceemo

sorting data in order
 

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="","",CO UNTIF($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
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=384805


ivano


"ceemo" ha scritto nel
messaggio ...

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="","",CO UNTIF($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




All times are GMT +1. The time now is 10:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com