Excel has two date systems: the 1900 system counts days from 1 January 1900 and the 1904 system from 1 January 1904, a difference of 1,462 days. A date copied from a workbook on one system into a workbook on the other lands four years and one day out, with no warning. Before comparing dates across files, check which system each workbook uses.
What you need
- The two workbooks whose dates you compare
- One known date that appears in both
- Access to File, Options, Advanced in each workbook
Step 1: Compare the same date in both workbooks
Find a date that appears in both workbooks and read it in each. If the same calendar date shows four years and one day apart, the workbooks use different systems.
Step 2: Check the 1904 setting in each workbook
In each workbook, open File, Options, Advanced, and look under When calculating this workbook for Use 1904 date system. A ticked box means the 1904 system; an unticked box means the 1900 system.
Step 3: Convert the dates to one system before comparing
If the systems differ, convert the pasted dates to the 1900 system, or add or subtract 1,462 days with Paste Special, as Microsoft documents. Re-check the known date: it must now read the same in both workbooks.
Worked example: synthetic date copied between workbooks
The table below is a synthetic example. It shows the expected result of a date-system check; no workbook was opened.
| Check | Value | Result |
|---|---|---|
| Known date in workbook A | 5 July 2011 | 1900 system |
| Same date pasted into workbook B | 6 July 2015 | 1,462 days later |
| Workbook B date system | 1904 | Ticked in Options |
| Date after conversion | 5 July 2011 | Matches workbook A |
| Difference | 1,462 days | Four years and one day |
Expected result (UNTESTED). the same date reads 5 July 2011 in workbook A and 6 July 2015 in workbook B, because B uses the 1904 system. Converting the date gives 5 July 2011 in both. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Dates copied as part of a chart cannot be converted automatically and must be fixed by hand.
- The 1904 system is the default on older Excel for Mac, so Mac-origin files are the usual suspects.
- Changing the date system setting changes every date in the workbook, not just the pasted ones.
- A date stored as text is not affected by the date system at all, which is one more reason to check the type.
