#1   Report Post  
fujimi-cho
 
Posts: n/a
Default Excel logic


Can someone answer this question?
I have 4 groups, let's call them Group A,B,C & D, and each group has
numerous members. All the participants are listed by name &
group,followed by several columns of data. Sorting by group designation
is easy enough, but what logic does Excel use to determine who is listed
first in each group?


--
fujimi-cho
------------------------------------------------------------------------
fujimi-cho's Profile: http://www.excelforum.com/member.php...o&userid=14759
View this thread: http://www.excelforum.com/showthread...hreadid=473023

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


I believe that, if you don't offer a 2nd sort parameter, the order the
items appear within the grouping of the first sort remain unchanged

That is to say that if Group 1 has members in this order:

Smith
Jones
Lee
Albertson

once sorted by Group 1, the order of the names will be as above.

You can, however, use a 2nd criteria to further sort within Groups,
either Ascending or Descending to return:

Albertson
Jones
Lee
Smith

HTH


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=473023

  #3   Report Post  
fujimi-cho
 
Posts: n/a
Default


SwatspOp,
Thanks for the information; just so I understand you correctly: If the
first entry for group C happens to be number 47 on my list, it will be
listed first when I sort by group designation, right?


--
fujimi-cho
------------------------------------------------------------------------
fujimi-cho's Profile: http://www.excelforum.com/member.php...o&userid=14759
View this thread: http://www.excelforum.com/showthread...hreadid=473023

  #4   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Yes, Excel uses a "stable" sort algorithm, meaning that it does not
change the order of any records other than what is required by the sort
fields. This allows you to potentially sort on more than three fields
by doing multiple sorts.

Jerry

fujimi-cho wrote:

SwatspOp,
Thanks for the information; just so I understand you correctly: If the
first entry for group C happens to be number 47 on my list, it will be
listed first when I sort by group designation, right?


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
Opening two separate instances of Excel Ron Bishop Excel Discussion (Misc queries) 2 August 4th 05 05:30 PM
Value Errors with EXCEL XP not showing up in EXCEL 2000 goodguy Links and Linking in Excel 0 July 19th 05 02:38 PM
"Group" function very slow with Excel 2003 :( ... While very quick with Excel2000 :O) Alain79 Excel Discussion (Misc queries) 4 June 14th 05 07:34 AM
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM


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