+ Reply to Thread
Results 1 to 5 of 5

Sorting dates going back into the 18th century

  1. #1
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Petersfield, Hampshire, UK
    MS-Off Ver
    MS Office for Mac ver 16
    Posts
    135

    Sorting dates going back into the 18th century

    I have a worksheet with a column for dates. The dates are entered in format dd/mm/yyyy. I would like to sort the dates in chronological order, however, the dates are all in the 18th century i.e. 01/01/1750. Excel does not want to sort these dates at all. I have also tried to format the column the dates are in so they show as 01-Jan-1750, but that won't work either. Is there a date limitation in Excel. I am using Excel for Mac 2011. TIA
    Geoff Culbertson
    Petersfield, UK

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Sorting dates going back into the 18th century

    Excel uses serial numbers to track dates, for windows versions, Day 1 is 01/01/1900. I believe that day 1 for the mac version falls somewhere in 1904.

    You could reverse the format of the dates in another column so that excel thinks they are just numbers, which you could then use to sort.

    Using the format YYYYMMDD (numbers only, no other characters) sorting in numeric order would be the same as chronological order, you could extract this from your original dates using formula or vba.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sorting dates going back into the 18th century

    Yes, Calendar dates in Excel date back to 1/1/1900 only

    Excel will read the date in year 1750 as text and not a number thereby throwing your sorting results out of whack.

    Input these dates as yyyymmdd i.e. 17500819 for Aug 19,1750. This way Excel will sort the 'text data' based on year, then month and then date.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Sorting dates going back into the 18th century

    Hi Glio,
    Excel (for Windows) dates start at Jan 1, 1900 with an option for starting at 1904 in Excel Options.

    Apparently the MAC uses the 1904 date system: https://support.microsoft.com/en-us/kb/303216 which is also of no help to you.


    There are at least two things you can do:
    a. Store the dates in yyyymmdd format such as 17501222.
    b. Use a custom VBA function that operates on dates prior to 1900. See https://support.microsoft.com/en-us/kb/245104
    I have not tried this function.

    Please be aware that the calendar has a discontinuity in 1752, when 11 days were removed in September. See https://en.wikipedia.org/wiki/1752

    Lewis

  5. #5
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Petersfield, Hampshire, UK
    MS-Off Ver
    MS Office for Mac ver 16
    Posts
    135

    Re: Sorting dates going back into the 18th century

    Thanks to all for your comments. I will have to change my date input to yyyymmdd as suggested. I will use a simple formula to do the change. Thanks for your responses. I just hoped there was an easier way ;( Happy New Year

+ 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] Date in wrong century
    By joshag in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2015, 05:40 PM
  2. Formula Help (display every 18th value on a new column)
    By juliorevka in forum Excel General
    Replies: 6
    Last Post: 02-15-2012, 04:59 AM
  3. 19th century date
    By rohnds in forum Excel General
    Replies: 8
    Last Post: 01-16-2012, 02:51 AM
  4. converting date problem and eliminate century
    By jg53 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2007, 01:37 PM
  5. [SOLVED] How can I determine the century of a date in Excel?
    By Robin in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2005, 02:05 PM
  6. Toggle a range of Julian dates to Gregorian Dates and Back
    By PSKelligan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2005, 10:06 AM

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