Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sorting multiple columns as one

Using your secondary table is probably the easiest way.

Of couse you could sort, rank and write the data back all in code.

--
Regards,
Tom Ogilvy


"Randy" wrote in message
...
Hi, what I want to do is sort multiple columns as one range. Example here

is
sorting descending on B, F, and I
col a colb col c col e col f col g col h col

i
col j
Name Score Rank Name Score Rank Name Score Rank

Fred 7 3 Art 6 4 George
8 2
Norma 4 5 Dumdum 1 6 Zeek 9
1


The results i want are a down then across sort:

Zeek 9 1 Fred 7 3 Norma 4
5
George 8 2 Art 6 4 Dumdum 1

6

Currently I have a separate part of the sheet where I build all the names

in
one column, sort them, and then just have the final table reference them

in
sequence. The Rank determines the rank in the one column sorted table.

This
is done with macros but real VBA is ok.

I guess the question(s) a Can I do a multi-column sort and can the Rank
function handle multiple ranges?

Thanks
--

Randy



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 multiple columns arbe Excel Worksheet Functions 2 February 17th 10 09:36 PM
sorting multiple columns Amstro2006 Excel Worksheet Functions 5 November 7th 07 10:07 PM
Sorting Multiple Columns SGF1 Excel Discussion (Misc queries) 3 October 6th 07 09:10 PM
Sorting multiple columns Hexius New Users to Excel 3 April 18th 06 01:55 AM
Sorting in multiple columns jezzica85 Excel Discussion (Misc queries) 2 February 20th 06 11:17 PM


All times are GMT +1. The time now is 07:06 AM.

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"