+ Reply to Thread
Results 1 to 6 of 6

Sorting Value Ranges

  1. #1
    Registered User
    Join Date
    06-15-2010
    Location
    Tipperary, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Sorting Value Ranges

    I'm looking to sort a range in Excel but there is more than just a normal sort.

    For example the data would look like

    Value:
    0-50
    51-100
    101-200
    201-300

    These ranges would be in any order in the sheet but I would need to sort them like above going from the smallest to the largest. Does this makes sense.

    Any suggestions would be welcome

  2. #2
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Sorting Value Ranges

    No!

    Upload some sample data with your expected results.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sorting Value Ranges

    You'll need to set up a different column and sort them by that column. The formula in the other column (assuming your data starts in cell A1 would be
    =LEFT(A1,FIND("-",A1)-1)+0
    Would that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    06-15-2010
    Location
    Tipperary, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sorting Value Ranges

    Quote Originally Posted by ChemistB View Post
    You'll need to set up a different column and sort them by that column. The formula in the other column (assuming your data starts in cell A1 would be
    =LEFT(A1,FIND("-",A1)-1)+0
    Would that work for you?
    Thats worked. Thanks for that.

  5. #5
    Registered User
    Join Date
    06-15-2010
    Location
    Tipperary, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sorting Value Ranges

    Quote Originally Posted by ChemistB View Post
    You'll need to set up a different column and sort them by that column. The formula in the other column (assuming your data starts in cell A1 would be
    =LEFT(A1,FIND("-",A1)-1)+0
    Would that work for you?
    As I said in the previous post this worked and I was wondering how is this function working? What does "-" represent?

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

    Re: Sorting Value Ranges

    It's the hyphen in the text string.
    Entia non sunt multiplicanda sine necessitate

+ 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