+ Reply to Thread
Results 1 to 7 of 7

how to know in which order it is sorted

  1. #1
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    how to know in which order it is sorted

    Hi,

    I have some headers in my sheet. When they click on the header it has to be sorted.

    When it is sorted by ascending and next time when they click header I want it to be sorted by descending.

    Right now I have implemented to sort Descending . Now how will I check in which order does it sorted?

    If know the order in which it is sorted currently then I will sort it in the opposite way..

    Please Login or Register  to view this content.
    Last edited by Ranjani; 03-29-2009 at 11:27 PM. Reason: including code tags

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to know in which order it is sorted

    Please edit your post to add code tags.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: how to know in which order it is sorted

    Hi Shg,

    Sorry about that!! I have edited now.

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to know in which order it is sorted

    If the firsrt value in the range is less than the last, it's sorted ascending.

  5. #5
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: how to know in which order it is sorted

    Hi Shg,

    Thanks for ur reply.
    Sorry I am not getting what you are telling?

  6. #6
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to know in which order it is sorted

    If a list is already sorted, then if the first value in the list is less that the last, the list is sorted ascending.

  7. #7
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: how to know in which order it is sorted

    Hi SHg,

    yes thatz right!!!

    i was wondering if there any way in the sort formula where we could find

    Anyways ill use this way.

    Thanks

+ 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