Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
it is possible BUT is only feasible for small amount of records (as it's
quite slow). Depending on your data structure you may try the following array
formulas (entered with CTRL+SHIFT+ENTER): These formulas sort mixed data
types (text, numbers, boolean values, error codes - If you have simpler data
- e.g. only numbers - post back as you can simplify the formulas))
(assuming your data is in A3:A20) try:
B3:
=INDEX(IF(ISBLANK($A$3:$A$20),"",$A$3:$A$20),MATCH (SMALL(COUNTIF(
$A$3:$A$20,"<"&$A$3:$A$20)+0*BigNumber*ISNUMBER($A $3:$A$20)+1*BigNumber*ISTEXT($A$3:$A$20)+2*BigNumb er*ISLOGICAL($A$3:$A$20)+3*BigNumber*ISERROR($A$3: $A$20)+4*BigNumber*ISBLANK($A$3:$A$20),ROW(1:1)),C OUNTIF($A$3:$A$20,"<"&$A$3:$A$20)+0*BigNumber*ISNU MBER($A$3:$A$20)+1*BigNumber*ISTEXT($A$3:$A$20)+2* BigNumber*ISLOGICAL($A$3:$A$20)+3*BigNumber*ISERRO R($A$3:$A$20)+4*BigNumber*ISBLANK($A$3:$A$20),0))

B4:
=INDEX(IF(ISBLANK($A$3:$A$20),"",$A$3:$A$20),MATCH (SMALL(COUNTIF(
$A$3:$A$20,""&$A$3:$A$20)+3*BigNumber*ISNUMBER($A $3:$A$20)+2*BigNumber*ISTEXT($A$3:$A$20)+1*BigNumb er*ISLOGICAL($A$3:$A$20)+0*BigNumber*ISERROR($A$3: $A$20)+4*BigNumber*ISBLANK($A$3:$A$20),ROW(1:1)),C OUNTIF($A$3:$A$20,""&$A$3:$A$20)+3*BigNumber*ISNU MBER($A$3:$A$20)+2*BigNumber*ISTEXT($A$3:$A$20)+1* BigNumber*ISLOGICAL($A$3:$A$20)+0*BigNumber*ISERRO R($A$3:$A$20)+4*BigNumber*ISBLANK($A$3:$A$20),0))

and copy this formula down. Bignumber is a large number which is than your
number of rows. e.g. define a name for this and set the name equatl to 70000

"cpastor" wrote:

Is it possible to sort by equation results? If so, how?

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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Working with array equations OkieViking Excel Discussion (Misc queries) 2 January 23rd 05 07:43 AM
Sorting Spreadsheet with Merged Fields Linda L Excel Discussion (Misc queries) 1 January 22nd 05 12:58 AM
sorting question Brian Excel Discussion (Misc queries) 4 November 28th 04 12:30 PM
Sorting mixed up linked cells in a workbook? Destiny Excel Worksheet Functions 2 November 20th 04 03:17 AM


All times are GMT +1. The time now is 02:09 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"