Results 1 to 5 of 5
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Data Sort (2000)

    Column A lists months beginning with January 1991, in date format "mmmm-yy". Column B, C, D, and E contain data for each month. What I would like to do is sort by month whereby the result would be that all Januaries would be grouped together, all Februaries, etc. Any ideas?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Data Sort (2000)

    Say your data begin in row 2, with column Headings in row 1.
    In F1, enter the word Month, and in G1, enter the word Year.
    In F2, enter the formula =MONTH(A2) and in G2 enter the formula =YEAR(A2)
    Fill down as far as the data go.
    Sort on column F.
    (If you mess with the sort order, select Data | Sort... and sort on Month, then on Year)

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Data Sort (2000)

    You could add another column and insert this formula in row 1 and fill it down:

    <code>
    =TEXT(A1,"mmm")
    </code>

    Then sort on that column.
    Legare Coleman

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Data Sort (2000)

    Wouldn't that sort Apr, Aug, Dec etc?

  5. #5
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Data Sort (2000)

    Yes, but the question didn't indicate that the months needed to remain in order, just that the data for each month be together. Your solution will do that if it is desired. <img src=/S/yep.gif border=0 alt=yep width=15 height=15>
    Legare Coleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •