Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Sorting a column by using formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Praise - 22 Oct 2004 04:55 GMT
Can i sort a column range by using any formula
Kieran - 22 Oct 2004 05:40 GMT
Praise,

Usually a sort is done by use of the sort tool that is found on th
data menu.

It is possible to use formulas to automatically lsit a range in a sor
order, but it is difficult to achieve this for large lists, or wher
there a duplicates in the list.

Please send an example of your problem to help in determining th
solution

--
Kiera

Born ignorant and still perfecting the ar
Frank Kabel - 22 Oct 2004 08:17 GMT
Hi
you can create a sorted extract in another column.
Some note upfront:
- very slow array formulas
- work only for small ranges (otherwise to slow)
- very LONG) formulas

But saying that now some formulas (copying excel's sort behaviour)
Assumptions:
- Data is in A3:A20 (adapt this to your needs)
- BigNumber is a defined name refering to the value 70000

Enter the following array formula (entered with CTRL+SHIFT+ENTER) in
your first row for the sorting extract):
=      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*BigNumber*ISLOGICAL($A$3:$A$20)+3*BigNum
ber*ISERROR($A$3:$A$20)+4*BigNumber*ISBLANK($A$3:$A$20),ROW(1:1)),COUNT
IF($A$3:$A$20,"<"&$A$3:$A$20)+0*BigNumber*ISNUMBER($A$3:$A$20)+1*BigNum
ber*ISTEXT($A$3:$A$20)+2*BigNumber*ISLOGICAL($A$3:$A$20)+3*BigNumber*IS
ERROR($A$3:$A$20)+4*BigNumber*ISBLANK($A$3:$A$20),0))

Copy this formula down for all required rows (this is one single
formula)

Signature

--
Regards
Frank Kabel
Frankfurt, Germany


> Can i sort a column range by using any formula?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.