#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Sorting

Any one know of a way to sort by 4 key's

Key1:=Range("N2"), Order1:=xlAscending,

Key2:=Range("A2"), Order2:=xlAscending,

Key3:=Range("S2"), Order3:=xlAscending,

Key4:=Range("T2"), Order4:=xlAscending,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Sorting

Two sorts are required. Sort first by Key #4 (T2). Then sort a 2nd time with 3
keys, #1 = N2, #2 = A2, #3 = S2

On Tue, 25 Jan 2005 18:37:31 -0800, "Patrick Simonds"
wrote:

Any one know of a way to sort by 4 key's

Key1:=Range("N2"), Order1:=xlAscending,

Key2:=Range("A2"), Order2:=xlAscending,

Key3:=Range("S2"), Order3:=xlAscending,

Key4:=Range("T2"), Order4:=xlAscending,


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Sorting

How about adding another column say 'Z' and concatenate the other 4 columns
and then doing one sort on 'Z'?

Z2 = +N2 & A2 & S2 & T2

Chris


"Patrick Simonds" wrote in message
...
Any one know of a way to sort by 4 key's

Key1:=Range("N2"), Order1:=xlAscending,

Key2:=Range("A2"), Order2:=xlAscending,

Key3:=Range("S2"), Order3:=xlAscending,

Key4:=Range("T2"), Order4:=xlAscending,




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 Values Without Sorting Formulas SBX Excel Discussion (Misc queries) 2 April 12th 09 11:17 PM
Automatic sorting (giving max and min) based on custom sorting lis Joe Lewis[_2_] Excel Worksheet Functions 4 November 23rd 08 05:12 AM
Sorting VLookup vs Sorting SumProduct Lauren Excel Discussion (Misc queries) 1 August 21st 07 12:19 AM
Sorting: Sorting by the First Character dzuy Excel Discussion (Misc queries) 2 June 22nd 06 08:27 PM
Sorting ListBox results or transposing ListBox values to other cells for sorting Rob[_8_] Excel Programming 1 July 9th 03 04:35 AM


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