Results 1 to 4 of 4

Thread: Sorting months and data from large set of data

  1. #1

    Sorting months and data from large set of data



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hello,

    I've got dates from 2007 to 2010 in sequential order(Attachment). I want to sort the date in a new column(F) in the order of 2007 January, then 2008 January, 2009 January, and finally 2010 January.


    Then another new column 2007 February, 2008 February, etc. and so on for remaining months. Secondly I want to sort the data in similar manner with respect to relevant dates. Kindly help me with the relevant formulas for one month.


    I am trying to sort by month... as all January months together and all Feb. months together for years 2007 to 2010.Thank You very much.

  2. #2
    Super Moderator NBVC's Avatar
    Join Date
    May 2011
    Location
    Mississauga, Canada
    Posts
    1,437
    Articles
    0
    Excel Version
    Excel 2016
    No attachment.


  3. #3
    File size is 980Kb. Forum does not allow to upload. I want to sort the dates similar to
    JAn 1 2007
    ...
    Jan 31 2007
    Jan 1 2008
    ...
    Jan 31 2008
    etc.

    But my dates start from Jan 1 2007 and End by 31 Dec 2010.

  4. #4
    Super Moderator NBVC's Avatar
    Join Date
    May 2011
    Location
    Mississauga, Canada
    Posts
    1,437
    Articles
    0
    Excel Version
    Excel 2016
    OK, Add a helper to the database.

    Assuming your dates are in column A, starting at A2 then in B2 enter formula:

    =TEXT(A2,"mmyyyydd")

    copied down.

    Now sort the data based on column B. (if you get a sort warning about sorting numbers as numbers or text, you can choose either, it doesn't matter).

    You can hide or delete the helper column afterwards.
    Last edited by NBVC; 2014-03-17 at 02:04 PM.


Posting Permissions

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