+ Reply to Thread
Results 1 to 6 of 6

Sorting DD/MM/YYYY into DD/MM

  1. #1
    Registered User
    Join Date
    08-02-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Sorting DD/MM/YYYY into DD/MM

    Hi there.

    I have around 1900 dates that I need to sort into order but I need the data to be displayed as DD/MM in chronological order eg 01/01, 02/01 etc.

    At the moment the dates are DD/MM/YYYY in one column. Have tried sorting them into date order but have found that they're sorted by YYYY.

    Is there a way of sorting them DD/MM instead?????
    Last edited by Little Lou; 08-09-2009 at 06:40 PM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Sorting DD/MM/YYYY into DD/MM

    Assuming all your 1900 dates stored in column A, eg A1:A2000
    In B1 try
    Descending order
    Please Login or Register  to view this content.
    Accending order
    Please Login or Register  to view this content.
    I'd rather to use formula to do that. If u want accending order SMALL(), LARGE() if descending.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sorting DD/MM/YYYY into DD/MM

    not sure what you mean
    if you sort
    25/10/08
    25/10/07
    24/10/08
    24/10/07
    they get sorted into
    24/10/07
    25/10/07
    24/10/08
    25/10/08
    which is chronological order!
    how ever if you want in col A
    24/10/07
    24/10/08
    25/10/07
    25/10/08
    then first sort by date then in a spare column put
    =DATE(1,MONTH(A1),DAY(A1))
    drag down and use that col to sort by
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    08-02-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sorting DD/MM/YYYY into DD/MM

    Thank you Martin that's been a great help

    'Chronological' might not be the right word????

    I wanted all the 1st Jan's to be together, followed by the 2nd Jan's and so on.

    The formula you quoted worked, after filling the column with the formula I sorted Column B and got the result I needed.

    The only problem I have is that some of the dates are pre 1900 so I'm getting a #VALUE! error message for these dates - are you able to advise on these???????

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sorting DD/MM/YYYY into DD/MM

    thats because dates before 1900 arent recognised as dates try
    =IF(ISTEXT(A1),DATE(1,MID(A1,4,2),LEFT(A1,2)),DATE(1,MONTH(A1),DAY(A1)))

  6. #6
    Registered User
    Join Date
    08-02-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sorting DD/MM/YYYY into DD/MM

    Thank you, that did the trick !

+ 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