+ Reply to Thread
Results 1 to 6 of 6

Problem sorting by Year

  1. #1
    Registered User
    Join Date
    09-04-2009
    Location
    Las Vegas
    MS-Off Ver
    Excel 2008 Mac
    Posts
    16

    Problem sorting by Year

    I'm sure this is simple, but the Help + Googling has gotten me nowhere...

    I have random years listed to the left, and specific numbers of homicide data to the right in various rows. Problem is, when I sort the years so it isn't such a mess, all the data in the rows to the right does not sort with it, it just stays there and messes up my whole document.

    How do I sort one column and make sure that all data in each row is locked and sorts along with it?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,614

    Re: Problem sorting by Year

    a) select cell in column where you want to sort (but don't sort yet). And then select all (Ctrl+A) and sort.

    b) better solution and recomanded: In first row where you (perhapes) have title (like Year etc) insert Filter (Data->Filter) and sort within filter. You can also do many other things if you do this way.

    c) some others but this should be enough

  3. #3
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: Problem sorting by Year

    Make sure you have a heading for every column in your data. If the top row has an empty cell (regardless of data in rows below it), sort will not pick up that column or those to the right of it.

  4. #4
    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: Problem sorting by Year

    Select all the columns, then sort by the column(s) you choose.

    If the top row has an empty cell (regardless of data in rows below it), sort will not pick up that column or those to the right of it.
    That's simply not true.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: Problem sorting by Year

    Quote Originally Posted by shg View Post
    That's simply not true.
    I've sorted enough data to be able to assure you that, especially if you use the sort buttons on the "standard" toolbar, having a blank cell in the header row can be very problematic. Therefore it should be the first thing to fix in order to prevent inconsistent results.

  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: Problem sorting by Year

    Recommended sorting practice: http://www.mvps.org/dmcritchie/excel/sorting.htm

+ 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