+ Reply to Thread
Results 1 to 5 of 5

Sorting by case

  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    Clearwater, FL
    MS-Off Ver
    Excel 2003
    Posts
    9

    Sorting by case

    My Excel 2003 (on XP Pro) does nor seem to recognize text case when using the Sort function. For instance, my records (rows) are distinguished by having either "a" or "A" in them. Sort does not separate them.
    How do I sort them by case, if at all?
    Thanks for any help available.

  2. #2
    Registered User
    Join Date
    06-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Sorting by case

    one thing you could do (which seems a little excess) is add 2 columns next to your column you are trying to sort. in one put all lowercase "a"s and in the other insert an an if() function in

    =IF(cell1=exact(cell2),"X","")

    this will return an "X" in the third if the cell has a lowercase "a". Then just sort that third column with the Xs alphabetically then just delete the two columns you added

    hope this helps. I tested it should work

  3. #3
    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 by case

    It's broken.

    In another column, =CODE(A1) and copy down. Sort by that and then your alpha data.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-20-2010
    Location
    Clearwater, FL
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Sorting by case

    Actually, I need to apologize for stupidity. In the Options under Data - Sort, there's a "Case sensitive" check box which allows the sort. I just hadn't looked for it before I posted. Thanks very much for your replies, though!

    A corollary is getting a formula or function to recognize the different case. IF function doesn't distinguish when one says something like
    "IF(A1="a", "Yes", "")"; it returns the same with either "a" or "A". I guess one needs to use the Exact function to distinguish?

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sorting by case

    Even the Excel programmers put good things in there we never expect

+ 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