Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ceemo
 
Posts: n/a
Default 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

  #2   Report Post  
ivano
 
Posts: n/a
Default


"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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
data from one sheet to several in sequential order! firecord New Users to Excel 6 June 22nd 05 05:10 PM
sorting data by date Katherine Excel Worksheet Functions 1 June 17th 05 03:12 PM
sorting number in ascending order Janice Lee via OfficeKB.com Excel Discussion (Misc queries) 2 April 8th 05 10:31 PM
how do you prevent data from changing values when sorting linked . Cassie Excel Discussion (Misc queries) 0 March 4th 05 10:45 AM
pivot table in data source order Murray Excel Discussion (Misc queries) 1 December 24th 04 09:01 PM


All times are GMT +1. The time now is 10:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"