+ Reply to Thread
Results 1 to 5 of 5

how to sort addresses so 111 appears before 1000 ?

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    usa
    MS-Off Ver
    2003
    Posts
    1

    how to sort addresses so 111 appears before 1000 ?

    I have a list of addresses in a column as such in excel 2003.
    How do I make excel sort it in proper numerical order such that 115 appears before 1111 instead of following 1133 ?

    111 S main st
    1111 S main st
    1119 S main st
    1124 S main st
    1125 S main st
    1130 S main st
    1133 S main st
    115 S main st
    1203 S main st
    1211 S main st
    1215 S main st
    1218 S main st
    1219 S main st
    1220 S main st
    1222 S main st
    1227 S main st
    1234 S main st
    125 S main st
    1288 S main st
    1308 S main st
    1312 S main st
    1319 S main st

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: how to sort addresses so 111 appears before 1000 ?

    Format the cells in equal numbers so 111 => will be 0111 and so on.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: how to sort addresses so 111 appears before 1000 ?

    I would split number from text in helper columns, and sort on these.
    With first address in A2:
    B2: =LEFT(A2,SEARCH(" ",A2)-1)
    C2: =SUBSTITUTE(A2,B2&" ","",1)
    copy down

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: how to sort addresses so 111 appears before 1000 ?

    This extracts a number from a string

    =1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$4),1)),0),COUNT(1*MID(A1,ROW($1:$4),1)))

    copy down and sort on that.

    Source: http://office.microsoft.com/en-gb/ex...001154901.aspx
    Last edited by Special-K; 09-15-2014 at 04:53 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: how to sort addresses so 111 appears before 1000 ?

    ... or use Data Text to Columns Fixed width and split at the 5th character then sort the two resulting columns. If necessary concatenate the two cells on each row back to a single cell.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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 can I sort over 1000 rows
    By Larbec in forum Excel General
    Replies: 6
    Last Post: 09-30-2013, 10:13 PM
  2. Replies: 1
    Last Post: 06-25-2013, 07:36 AM
  3. Replies: 2
    Last Post: 05-07-2007, 09:01 AM
  4. [SOLVED] How do I sort addresses in excel?
    By tapndog in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. How do I sort addresses in excel?
    By tapndog in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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