+ Reply to Thread
Results 1 to 11 of 11

Sorting Dates

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    33

    Sorting Dates

    Hi all

    My dates are sorting as per the image below.How do I get them to sort in chronological order (e.g. 01 January, 02 January etc)

    Excel Forum.PNG

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Sorting Dates

    right click your column, format cell as "DATE". Then you can simply sort ascending or descending.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Sorting Dates

    It didn't work mate. I've formatted the column as 'short date'. No idea what's wrong with it. Any other suggestions?

    Thanks anyway though.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Sorting Dates

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Sorting Dates

    Do you format as dd/mm/yyyy ?

  6. #6
    Registered User
    Join Date
    04-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Sorting Dates

    Yea formatted as dd/mm/yyyy
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Sorting Dates

    Suspect your format cell is no apply to your column.
    You can try this, format G & H as dd/mm/yyyy, then at G2=DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2)),
    drag to right(H) and drag down again. Copy and PasteSpecial (Value) to replace the A&B. Sort again base on G/H. I should worked.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Sorting Dates

    none of your "dates" are actually dates, they are all text (except for B10, that I can see). Dates are actually just "special" numbers - a 5 digit number - that counts the days from 1/1/1900. A quick way to test is to use =isnumber(cell_ref) FALSE indicates text

    a quick way to fix that is to high-light the data in column A, select TexttoColumns, delimited, next, date
    repeat for column B

  9. #9
    Registered User
    Join Date
    04-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Sorting Dates

    It works. You're a legend. Thanks

  10. #10
    Registered User
    Join Date
    04-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Sorting Dates

    Great. Both worked, thanks!

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Sorting Dates

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

+ 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