+ Reply to Thread
Results 1 to 4 of 4

Sorting at two columns (Advanced Sort doesn't help)

Hybrid View

  1. #1
    Registered User
    Join Date
    12-13-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Sorting at two columns (Advanced Sort doesn't help)

    Hi,


    I frequently need to sort the data in columns at two levels simultaneously. However, when I sort the data (as shown below), I don't get the desired output.

    Data:

    Name Age Date
    aaa 23 1-Feb-11
    aab 22 5-Mar
    abc 21 9-Apr
    aaa 23 11-Jun
    ba 42 5-Jul
    aab 22 6-Aug



    Desire Output:

    Name Age Date
    aaa 23 1-Feb-11
    aaa 23 11-Jun
    aab 22 5-Mar
    aab 22 6-Aug
    abc 21 9-Apr
    ba 42 5-Jul


    Here, sorting is done first on Date column (Oldest to Newest) and then on Names ( Similar names clubbed together) and advanced sort doesn't give this output.


    Can anyone help me out on this?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sorting at two columns (Advanced Sort doesn't help)

    Hi Shashjindal,

    You can use simple sort option as per below steps:-

    Set First sort on Name on Ascending and Second sort on Date on Ascending order and apply the sort.

    I have tested this and ouput is same as per your results.

    Regards,
    DILIPandey

    < click on below 'star' if this helps >
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    12-13-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Sorting at two columns (Advanced Sort doesn't help)

    Hi DiliPandey,


    Thanks for your response.


    The priority is to first have the data sorted according to dates and then on the basis of names. This would sort the data on names and then would bring the same names together. This is the idea behind this exercise.


    Can you suggest what to be done? Thanks a lot for your time.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sorting at two columns (Advanced Sort doesn't help)

    Not sure, might be your date are different years as you have shown some dates in dd-mmm-yy and some in dd-mmm.
    If possible, please upload a sample file with little more data. Thanks.

    Regards,
    DILIPandey

    < click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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