+ Reply to Thread
Results 1 to 7 of 7

Sort Times from smallest to highest and Text value

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Sort Times from smallest to highest and Text value

    Looking for formula to sort times from smallest to largest. Times to be sorted are in column A[/B]. Also in column A is a text value. Would like the formula to sort both the times and text into the desired column in B. See attached sample file.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Sort Times from smallest to highest and Text value

    Probably a silly question, but why don't you just sort column A?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Sort Times from smallest to highest and Text value

    TMS: The sheet would be locked and hidden to any form of manipulation, which is why I am looking for a formula. Thanks.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Sort Times from smallest to highest and Text value

    Are you really using Excel 2010? If you are using Excel 2019, there is a Sort function that will probably do what you want.

    Not sure if you can do it with a formula given the mixed content.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Sort Times from smallest to highest and Text value

    Maybe this:

    =SMALL($A$2:$A$15,ROW()-1)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Sort Times from smallest to highest and Text value

    @Ali: it doesn't cope with the "None" entry.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Sort Times from smallest to highest and Text value

    This seems to work for the example (essentially AliGW's formula wrapped in an IFERROR() to trap the one error value) =IFERROR(SMALL($A$2:$A$15,ROW(B1)),$A$15) It works because there is only one text entry and it is at the bottom of the list. How well does the example represent the real problem?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to write the VBA code with the highest sales sorted to the smallest
    By Sakurayuki in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-03-2020, 10:25 PM
  2. [SOLVED] detect the smallest with the highest number in each sector, forming two pairs
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 04-12-2020, 02:56 PM
  3. Replies: 1
    Last Post: 04-16-2015, 06:29 PM
  4. Sort largest to smallest - VBA
    By Ricardo Mass in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2013, 09:05 AM
  5. Sort Largest to smallest automatically
    By jmwilson in forum Excel General
    Replies: 6
    Last Post: 05-06-2012, 07:05 PM
  6. Excel 2007 : sort smallest number to largest
    By ravihotwok in forum Excel General
    Replies: 1
    Last Post: 12-06-2011, 11:35 AM
  7. how list highest to smallest values?
    By jgomez in forum Excel General
    Replies: 4
    Last Post: 11-04-2011, 04:23 PM

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