#1   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default I wish I could...

"Biff" wrote
The formulas are too complicated and will scare people off!


How can anything which works be scary? More a work of fine art to appreciate
rather than anything to be scared about. The complicated looking parts of it
perhaps might take a little more effort on the OP's / readers' part to study
and understand how it works so that one could readily adapt it to suit or
cross apply it to other similar situations ..

I'm a one finger typer and sometimes it takes forever to explain my posts.


... tsk, tsk, lame excuse there <g. I've seen many of your posts where you
had patiently explained your complex formulas very well in your responses.

Personally, I would use DataSort and then DataFilterAdvanced Filter to
do this. Maybe even record it as a macro.


well, the OP did express his / her wish for:
" .. a combination of functions to automate the sorting (in ascending or
desc. order)"

For discussions' sake, how should your formulas be modified for a descending
sort ?

For easy reference here, below is what you had suggested in your sample:

Source data assumed within A1:A21

Array-entered in B1:
=INDEX($A$1:$A$21,MATCH(MIN(COUNTIF($A$1:$A$21,"<" &$A$1:$A$21&"")+
COUNT($A$1:$A$21)*ISTEXT($A$1:$A$21)+100000*ISBLAN K($A$1:$A$21)),COUNTIF($A$1:$A$21,"<"&$A$1:$A$21&" ")+COUNT($A$1:$A$21)*ISTEXT($A$1:$A$21)+100000*ISB LANK($A$1:$A$21),0))

Array-entered in B2:
=INDEX($A$1:$A$21,MATCH(0,COUNTIF($A$1:$A$21,"<"&$ A$1:$A$21)+COUNT($A$1:$A$21)*ISTEXT($A$1:$A$21)+10 0000*ISBLANK($A$1:$A$21)-SUM(COUNTIF($A$1:$A$21,"="&B$1:B1)),0))
B2 is then copied down to B21

B1:B21 yields the auto-ascending sort of the items in A1:A21

(Array-entered: Press CTRL+SHIFT+ENTER, instead of just pressing ENTER to
commit the formula)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default I wish I could...

For discussions' sake, how should your formulas be modified for a
descending sort ?


In each formula where you see "<" just change that to "".

Biff

"Max" wrote in message
...
"Biff" wrote
The formulas are too complicated and will scare people off!


How can anything which works be scary? More a work of fine art to
appreciate rather than anything to be scared about. The complicated
looking parts of it perhaps might take a little more effort on the OP's /
readers' part to study and understand how it works so that one could
readily adapt it to suit or cross apply it to other similar situations ..

I'm a one finger typer and sometimes it takes forever to explain my
posts.


.. tsk, tsk, lame excuse there <g. I've seen many of your posts where
you had patiently explained your complex formulas very well in your
responses.

Personally, I would use DataSort and then DataFilterAdvanced Filter to
do this. Maybe even record it as a macro.


well, the OP did express his / her wish for:
" .. a combination of functions to automate the sorting (in ascending or
desc. order)"

For discussions' sake, how should your formulas be modified for a
descending sort ?

For easy reference here, below is what you had suggested in your sample:

Source data assumed within A1:A21

Array-entered in B1:
=INDEX($A$1:$A$21,MATCH(MIN(COUNTIF($A$1:$A$21,"<" &$A$1:$A$21&"")+
COUNT($A$1:$A$21)*ISTEXT($A$1:$A$21)+100000*ISBLAN K($A$1:$A$21)),COUNTIF($A$1:$A$21,"<"&$A$1:$A$21&" ")+COUNT($A$1:$A$21)*ISTEXT($A$1:$A$21)+100000*ISB LANK($A$1:$A$21),0))

Array-entered in B2:
=INDEX($A$1:$A$21,MATCH(0,COUNTIF($A$1:$A$21,"<"&$ A$1:$A$21)+COUNT($A$1:$A$21)*ISTEXT($A$1:$A$21)+10 0000*ISBLANK($A$1:$A$21)-SUM(COUNTIF($A$1:$A$21,"="&B$1:B1)),0))
B2 is then copied down to B21

B1:B21 yields the auto-ascending sort of the items in A1:A21

(Array-entered: Press CTRL+SHIFT+ENTER, instead of just pressing ENTER to
commit the formula)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default I wish I could...

"Biff" wrote:
For discussions' sake, how should your formulas be modified for a
descending sort ?


In each formula where you see "<" just change that to "".


Biff, thanks !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default I wish I could...

You're welcome, Max!

Biff

"Max" wrote in message
...
"Biff" wrote:
For discussions' sake, how should your formulas be modified for a
descending sort ?


In each formula where you see "<" just change that to "".


Biff, thanks !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



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



All times are GMT +1. The time now is 06:43 PM.

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

About Us

"It's about Microsoft Excel"