Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Custom sorts - Multiple Keys

I have an Excel worksheet that requires two custome sorts one being the
primary key and the other the secondary.

The first sort key is Columa "A" and the second sort key is column "D".
Column A is the primary key and it has to be sorted by OrderCustom=4 and
column "D" is the secondary key and has to be sorted by OrderCustome = 7

Your help is much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default Custom sorts - Multiple Keys

Hi Rafi,
I think recording a macro would answer your question.

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Rafi" wrote in message ...
I have an Excel worksheet that requires two custome sorts one being the
primary key and the other the secondary.

The first sort key is Columa "A" and the second sort key is column "D".
Column A is the primary key and it has to be sorted by OrderCustom=4 and
column "D" is the secondary key and has to be sorted by OrderCustome = 7

Your help is much appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Custom sorts - Multiple Keys

recording a macro will not do since a custom sort can only function as the
Primary sort key.

Thanks

"Rafi" wrote:

I have an Excel worksheet that requires two custome sorts one being the
primary key and the other the secondary.

The first sort key is Columa "A" and the second sort key is column "D".
Column A is the primary key and it has to be sorted by OrderCustom=4 and
column "D" is the secondary key and has to be sorted by OrderCustome = 7

Your help is much appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Custom sorts - Multiple Keys

How about just doing multiple single key sorts. Start with the secondary key,
then sort by the primary key.



Rafi wrote:

recording a macro will not do since a custom sort can only function as the
Primary sort key.

Thanks

"Rafi" wrote:

I have an Excel worksheet that requires two custome sorts one being the
primary key and the other the secondary.

The first sort key is Columa "A" and the second sort key is column "D".
Column A is the primary key and it has to be sorted by OrderCustom=4 and
column "D" is the secondary key and has to be sorted by OrderCustome = 7

Your help is much appreciated.


--

Dave Peterson
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
Custom Sorts in PivotTables Kokomojo Excel Discussion (Misc queries) 2 May 28th 09 03:27 AM
same range, multiple sheets, different sorts, help please! nikmasteed Excel Worksheet Functions 2 May 19th 06 04:30 PM
Multiple Sorts Nigel Excel Programming 2 November 9th 04 02:23 PM
Multiple Sorts Ruan[_3_] Excel Programming 5 May 29th 04 02:50 AM
Macro for Multiple Sorts Dakota Excel Programming 5 February 4th 04 03:25 PM


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