Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Multiple Column Sorting

Hi,

For a more general solution try this. Assume that your data is in the range
A1:E5

Enter the following formula in a cell and copy it down five rows and over
five columns:

=SMALL($A$1:$E$5,ROW(A1)+5*(COLUMN(A1)-1))

Note this will work even if the number are not well ordered as in your
example. The sorting solution would fail if swapped the 1 and the 25, but
this formula will not. You can adjust the arguments of the formula to
address other ranges.

If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire


"chinoyvr" wrote:

Using Excel 2003, want to sort example listed below...there are no headers...

25 20 15 10 5
24 19 14 9 4
23 18 13 8 3
22 17 12 7 2
21 16 11 6 1

Basically, each number is on a different row and column orderly.
Is there a way to sort all of it and put it in proper order from lowest
number and up first by column, then by row...so that the outcome would look
like;

1 6 11 16 21
2 7 12 17 22
3 8 13 18 23
4 9 14 19 24
5 10 15 20 25

The example I used is small as the spreadsheet I work on is about 20 columns
wide and 29 rows deep.



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
Sorting a Pivot Table Column that is not the first column... [email protected] Excel Worksheet Functions 1 October 10th 07 09:02 PM
Sorting Data From One Column into Multiple Columns Justin Hoffmann Excel Worksheet Functions 2 July 12th 06 04:15 PM
How do I limit sorting a column to the column? Pat Excel Worksheet Functions 0 February 9th 06 04:01 PM
Advice sought: Multiple column sorting davidm Excel Worksheet Functions 3 July 29th 05 02:06 PM
Right column doesn't change when sorting left column. nohope Excel Discussion (Misc queries) 2 July 19th 05 03:27 PM


All times are GMT +1. The time now is 07:59 PM.

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"