+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Sorting Issues

  1. #1
    Registered User
    Join Date
    03-17-2011
    Location
    Atlanta
    MS-Off Ver
    Excel for Office 365
    Posts
    38

    Exclamation Sorting Issues

    I am editing a huge database that has been created in excel and is about 9800 entries.

    I need the database to sort properly by last name and then by first name. When I select my data (there are 3 rows of "headers" at the top) and do the sort by First Name and then by Last Name, it catches all the last names, in the correct order, and then some of the first names, in the correct order, but then randomly decides to jumble some of the more common last names, such as Smith. Here's an example:

    Smith, Andrew
    Smith, Andrew
    Smith, Andrew
    Smith, Denise
    Smith, Jason
    Smith, Jason
    Smith, Jason
    Smith, Jason
    Smith, Kellie
    Smith, Andrew
    etc (and then ir resorts properly within the next subset)

    This problem does not happen on all entries, but enough to make manually moving then everytime I have resort a giant pain.

    There are no blanks and all the cells are formatted the same. I'm stumped and am trying to meet a deadline for today, but if you know a solution and it is 3 weeks or longer from now PLEASE post it. I will inevitably run into this problem in the future.
    Last edited by physicsgal; 03-17-2011 at 09:51 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Sorting Issues

    Hi and welcome to the board

    Is your data imported from another application, source?
    It might contain non printable character that need to be cleaned
    Try adding =TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160)," "))) in a helper column, pull down as needed and try sorting again to see if this helps

  3. #3
    Registered User
    Join Date
    03-17-2011
    Location
    Atlanta
    MS-Off Ver
    Excel for Office 365
    Posts
    38

    Re: Sorting Issues

    Thanks, and you are life-saver, it fixed the issue!

    MUCH gratitude :D

+ 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