+ Reply to Thread
Results 1 to 4 of 4

Excel logic

  1. #1
    Registered User
    Join Date
    09-27-2004
    Posts
    17

    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?

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    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
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    09-27-2004
    Posts
    17

    Excel Logic

    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?

  4. #4
    Jerry W. Lewis
    Guest

    Re: Excel logic

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1