+ Reply to Thread
Results 1 to 6 of 6

sort by date with strange format

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    16

    sort by date with strange format

    Hi -

    I have a very large database (40,000 entries), and one of the columns contains the date with a consistent, but inconvenient format. Here is an Example:

    Fri Aug 02 00:24:00 PDT 2013

    I need to sort these dates from earliest to most recent, but the custom format I attempted sorts in order from left to right (by day of the week, then month, then day of the month, etc.). The custom date format I used is:

    ddd, mmm, dd, hh:mm:ss, yyyy

    Am I on the wrong track? How can I sort my rows by date?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: sort by date with strange format

    I would suggest that you provide a sample by uploading a spreadsheet with your current data scheme. This way will able to determine what the best approach would be to your problem.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    03-28-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: sort by date with strange format

    Here's a simplified version of my spreadsheet. I need to sort by date, but this sorts the date column alphabetically, not by the actual date.
    Attached Files Attached Files

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: sort by date with strange format

    I think you'll need to convert those entries to real dates so you can sort them.

    Try this formula in a helper column, format the result as you want and then sort on it.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: sort by date with strange format

    If there's no direct way to change the date formula so it can sort, this formula does the trick.

    Thanks! Problem solved.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: sort by date with strange format

    You could do something with code but it would probably just be replicating the formula.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Decoding strange date format
    By viktoristus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2013, 03:59 PM
  2. Calculating duration with strange date / time format
    By chrispx001 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2013, 11:08 AM
  3. converting "strange" date format to standard date format
    By perinouk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2007, 02:09 PM
  4. strange date format problem
    By amag in forum Excel General
    Replies: 2
    Last Post: 06-03-2006, 08:10 AM
  5. [SOLVED] the date format is not working ,sort by date doesn't work.
    By Rosa Campos in forum Excel General
    Replies: 1
    Last Post: 09-12-2005, 06:05 PM

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