{"id":1706,"date":"2015-02-14T18:20:31","date_gmt":"2015-02-14T07:20:31","guid":{"rendered":"http:\/\/excelatfinance.com\/online\/?page_id=1706"},"modified":"2015-03-27T17:27:57","modified_gmt":"2015-03-27T06:27:57","slug":"comparison","status":"publish","type":"page","link":"https:\/\/excelatfinance.com\/online\/comparison\/","title":{"rendered":"Spreadsheet date comparisons"},"content":{"rendered":"<p><?php include \"..\/includes\/access.php\"; ?><\/p>\n<p>A comparison of dates and serial numbers across three spreadsheet applications.<\/p>\n<ol>\n<li>Microsoft Excel 2013<\/li>\n<li>LibreOffice Calc ver. 4.4<\/li>\n<li>Google sheets (ver. as at March 2015)<\/li>\n<\/ol>\n<h2>Dates<\/h2>\n<p>Three factors are reviewed here:<\/p>\n<ul>\n<li>The 1900 leap year error &#8211; relates only to Excel<\/li>\n<li>Day zero &#8211; the computer epoch<\/li>\n<li>Negative dates &#8211; before the epoch &#8211; an error, only in Excel<\/li>\n<\/ul>\n<p>Figure 1 shows the worksheet used in the spreadsheet comparison. Sheet1 is from the file named <em>DatesSpreadsheetComparison.xlsx<\/em> that has (serial date) numbers in column B. This serial date vector is linked to column C with a cell references. For example, cell C4 contains the formula <code class=\"xl\">=B4<\/code>, with a date format applied as <strong>dd-mmm-yyyy<\/strong> in all cases. This file is used in all three applications.<\/p>\n<h2>MS Excel<\/h2>\n<figure><a href=\"..\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png\"><img data-attachment-id=\"1705\" data-permalink=\"https:\/\/excelatfinance.com\/online\/comparison\/xlf-dates-comparison-microsoft-excel\/\" data-orig-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png?fit=885%2C720&amp;ssl=1\" data-orig-size=\"885,720\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"xlf-dates-comparison-microsoft-excel\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png?fit=300%2C244&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png?fit=625%2C508&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" src=\"..\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png\" alt=\"xlf-dates-comparison-microsoft-excel\" width=\"885\" height=\"720\" class=\"alignnone size-full wp-image-1705\" srcset=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png?w=885&amp;ssl=1 885w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png?resize=150%2C122&amp;ssl=1 150w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png?resize=300%2C244&amp;ssl=1 300w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-microsoft-excel.png?resize=624%2C508&amp;ssl=1 624w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/a><figcaption><strong>Fig 1: Excel 2013<\/strong> &#8211; in row 10, the epoch: 00-Jan-1900, negative dates show the ######### error<\/figcaption><\/figure>\n<p><\/p>\n<p>Features of Excel dates:<\/p>\n<ul>\n<li>The 1900 leap year error &#8211; the date 29 February 1900 did not occur, but it appears in the Excel worksheet<\/li>\n<li>Day zero &#8211; the day before 1 January 1900, treated by Excel as 0 January 1900<\/li>\n<li>Negative dates &#8211; before the epoch &#8211; return a ###### error. Excel does not permit serial number dates in the year 1899 or earlier<\/li>\n<\/ul>\n<p>For reasons of backward compatibility, Excel retains the Lotus 123, 1900 leap year <a title=\"To be a leap year, the year must be evenly divisible by 4, but if it is evenly divisible by 100 it is not a leap year, unless it is be evenly divisible by 400, then it is a leap year. The years 1800, 1900, and 2100 are NOT leap years.\" href=\"#\">error<\/a>. The date, 29 February 1900 in row 16 is incorrect as the year 1900 was not a leap year.<\/p>\n<p>The error in Excel, and inconsistencies across packages during the first 61 days of the year 1900 are unlikely to effect many analysts. However, you need to be aware of the issue, and it may be of concern to those doing historical finance or other historical recording.<\/p>\n<h2>LibreOffice Calc<\/h2>\n<p>The LibreOffice interface is based on the Excel 2003 menu style.<\/p>\n<figure><a href=\"..\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png\"><img data-attachment-id=\"1704\" data-permalink=\"https:\/\/excelatfinance.com\/online\/comparison\/xlf-dates-comparison-libreoffice-calc\/\" data-orig-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png?fit=922%2C669&amp;ssl=1\" data-orig-size=\"922,669\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"xlf-dates-comparison-libreoffice-calc\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png?fit=300%2C218&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png?fit=625%2C453&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" src=\"..\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png\" alt=\"xlf-dates-comparison-libreoffice-calc\" width=\"885\" height=\"642\" class=\"alignnone size-full wp-image-1704\" srcset=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png?w=922&amp;ssl=1 922w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png?resize=150%2C109&amp;ssl=1 150w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png?resize=300%2C218&amp;ssl=1 300w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-libreoffice-calc.png?resize=624%2C453&amp;ssl=1 624w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/a><figcaption><strong>Fig 2: LibreOffice Calc <\/strong> &#8211; row 10 shows the epoch: 30-Dec-1899, negative serial dates are permitted<\/figcaption><\/figure>\n<p><\/p>\n<p>The features of LibreOffice dates:<\/p>\n<ul>\n<li>The last day of February in the year 1900 is treated correctly<\/li>\n<li>Day zero &#8211; is 30 December 1899, meaning that day 1 is 31 December 1899. Serial days from 1 March 1900 synchronize with those in Excel<\/li>\n<li>Negative dates &#8211; negative date serial numbers are permitted<\/li>\n<\/ul>\n<h2>Google sheets<\/h2>\n<p>The Google sheets interface is based on the Excel 2003 menu style.<\/p>\n<figure><a href=\"..\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png\"><img data-attachment-id=\"1703\" data-permalink=\"https:\/\/excelatfinance.com\/online\/comparison\/xlf-dates-comparison-google-sheets\/\" data-orig-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png?fit=928%2C796&amp;ssl=1\" data-orig-size=\"928,796\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"xlf-dates-comparison-google-sheets\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png?fit=300%2C257&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png?fit=625%2C536&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" src=\"..\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png\" alt=\"xlf-dates-comparison-google-sheets\" width=\"885\" height=\"759\" class=\"alignnone size-full wp-image-1703\" srcset=\"https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png?w=928&amp;ssl=1 928w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png?resize=150%2C129&amp;ssl=1 150w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png?resize=300%2C257&amp;ssl=1 300w, https:\/\/i0.wp.com\/excelatfinance.com\/online\/wp-content\/uploads\/2015\/02\/xlf-dates-comparison-google-sheets.png?resize=624%2C535&amp;ssl=1 624w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/a><figcaption><strong>Fig 3: Google sheets<\/strong> &#8211; epoch: 30-Dec-1899, negative serial dates are permitted <\/figcaption><\/figure>\n<p><\/p>\n<p>The features of Google Sheets dates:<\/p>\n<ul>\n<li>The last day of February in the year 1900 is treated correctly<\/li>\n<li>Day zero &#8211; is 30 December 1899, meaning that day 1 is 31 December 1899. Serial days from 1 March 1900 synchronize with those in Excel<\/li>\n<li>Negative dates &#8211; negative date serial numbers are permitted<\/li>\n<li>LibreOffice Calc serials dates are in line with Google Sheets serial dates, <em>albeit<\/em> with different start and end points.<\/li>\n<\/ul>\n<p><?php include '..\/includes\/next-prev.php'; ?><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A comparison of dates and serial numbers across three spreadsheet applications. Microsoft Excel 2013 LibreOffice Calc ver. 4.4 Google sheets (ver. as at March 2015) Dates Three factors are reviewed here: The 1900 leap year error &#8211; relates only to Excel Day zero &#8211; the computer epoch Negative dates &#8211; before the epoch &#8211; an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false},"jetpack_shortlink":"https:\/\/wp.me\/P59BC0-rw","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/pages\/1706"}],"collection":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/comments?post=1706"}],"version-history":[{"count":0,"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/pages\/1706\/revisions"}],"wp:attachment":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/media?parent=1706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}