+ Reply to Thread
Results 1 to 7 of 7

List wont go into a-z order correctly

  1. #1
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    List wont go into a-z order correctly

    hi everyone i have a large list here and would like to get it to go into a-z order using the team name column.
    it seams to do half of the list that another half.. cant see why it would do this ... any help please thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: List wont go into a-z order correctly

    The second half of the data has a space before the first letter. So it is sorting first everything A-Z without the space then everything A-Z with the space. To fix this, put =TRIM(B3) in A3 and fill down. Then select columns A thru D and sort on column A.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: List wont go into a-z order correctly

    Actually, there's a space (code=32) in front of half, and a "STICKY" space (code = 160) in front of the other.
    Paste the following in A3 and copy down. Then sort columns A:D (on A).:
    =TRIM(SUBSTITUTE(B3,CHAR(160),""))

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 07-26-2017 at 04:00 PM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: List wont go into a-z order correctly

    It also has leading non-breaking spaces in some cells. Use find alt-0160 and replace with nothing
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    Re: List wont go into a-z order correctly

    thank you for the help.

  6. #6
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    Re: List wont go into a-z order correctly

    YES it works thank you very much

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: List wont go into a-z order correctly

    Happy to help! If you have your answer, please go to Thread Tools up top and mark your thread as SOLVED. Thanks!-Lee

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee

+ 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] Pivot table wont find the difference correctly
    By breazzyyy in forum Excel General
    Replies: 2
    Last Post: 10-23-2015, 01:04 AM
  2. [SOLVED] Cell format wont show % value correctly
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2014, 06:01 PM
  3. IF statement wont work correctly
    By dannyshezo in forum Excel General
    Replies: 10
    Last Post: 11-04-2011, 01:02 PM
  4. formula wont copy correctly into next row
    By imatthews2001 in forum Excel General
    Replies: 6
    Last Post: 08-25-2011, 04:34 PM
  5. Workhours code wont loop correctly.
    By prefix in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-08-2011, 10:34 AM
  6. formula wont copy across to other cells correctly
    By chrissywhittle in forum Excel General
    Replies: 10
    Last Post: 03-09-2006, 01:30 AM
  7. code wont compare negative numbers correctly
    By evil baby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2006, 02:31 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