SI Back Office

Troubleshooting guide · updated 2026-10-11

Dates sort wrongly or change between computers: serial numbers, text dates and day-month order

Excel stores dates as numbers and reads typed dates through regional settings. Learn how text dates, a four-year offset and day-first entries produce wrong sorting, and what to do with rows that cannot be settled.

A real date is a number

Excel stores a date as a serial number: the count of days from a start date. Microsoft documents two systems. The 1900 system counts from January 1, 1900, and the 1904 system from January 1, 1904. They differ by 1,462 days, which is four years and one day. Microsoft's example: July 5, 2011 is 40729 in the 1900 system and 39267 in the 1904 system.

When dates are pasted between workbooks that use different systems, they can arrive shifted by those 1,462 days. A tell-tale sign is a whole column of dates that is almost exactly four years out. Microsoft describes correcting this by adding or subtracting 1462 with Paste Special.

A text date is not a date

Entries that look like dates but are text align to the left, will not sort chronologically and cannot be used in date arithmetic. DATEVALUE converts text to a serial number, which then needs a date format applied. Its documentation notes that a missing year takes the current year from the computer's clock, that time information is ignored and that text outside the supported range returns an error.

When the text does not match what your system expects, Microsoft's #VALUE! page suggests building a real date from its parts, for example a DATE formula that picks the year, month and day out of a day-first text entry. Such a formula embeds a decision about order, so it is only safe for a column whose order you know.

  • Left-aligned dates are text.
  • A COUNT of the column lower than the number of filled cells means some entries are text.
  • Convert on a copy, keep the original column and look at a sample afterwards.

Day-month order is interpreted, not stored in the text

The text 03/04/2026 does not say which number is the day. Microsoft's documentation shows Excel turning typed entries into dates automatically, such as 12/2 into 2-Dec, and says there is no way to turn this off; its workaround is to format cells as Text first or to type an apostrophe. Microsoft also says that when you type something Excel reads as a date, it formats it according to the default date setting in Control Panel, and that date formats beginning with an asterisk change when the regional configuration changes. The DATEVALUE page warns that the system date setting may change what it shows. The upshot is that a typed date depends on the computer it was typed on.

The result is that a column built from several people's typing can hold some entries read as day-first and some as month-first, both valid and both wrong for someone. When both numbers are 12 or less and differ, nothing in the cell can settle it.

Two-digit years and the cutoff

With two-digit years, Microsoft says Excel reads 00 to 29 as 2000 to 2029 and 30 to 99 as 1930 to 1999, and recommends four-digit years. A date typed as 31 is read as 1931, which is wrong for a list of this year's invoices. The cutoff is a rule that must be agreed for the file, not assumed.

Settling ambiguity, and the paid job

The honest approach is a written rule per source. For example: dates typed by the Leeds office are day-first, dates from the system export are year-month-day. Where a source is known, convert by its rule. Where it is not, list the row and let the owner decide. Output in the year-month-day form, which the W3C date-and-time note describes as an unambiguous representation, so the problem is not recreated.

The clean-up job, from £125 with the final price confirmed after we see the column list, covers one file of up to 20,000 rows with up to three date columns and two number columns (an untested proposal). It is accepted by the conversion counts, a reference set of at least thirty dates you confirm from source documents and a list of every ambiguous row, with payment after your sign-off. It does not guess dates, handle time zones or decide which dates are right for your business. Send the column list and what you know about each source, not the file.

Sources and limits

  • Date systems in Excel (Microsoft Support) Checked 2026-10-11.
    • Excel stores a date as a serial number counted from a start date; the 1900 and 1904 systems differ by 1,462 days (four years and one day).
    • July 5, 2011 is 40729 in the 1900 system and 39267 in the 1904 system, and dates pasted between workbooks that use different systems can be shifted unless converted.
  • Change the date system, format, or two-digit year interpretation (Microsoft Support) Checked 2026-10-11.
    • Two-digit years 00 to 29 are interpreted as 2000 to 2029 and 30 to 99 as 1930 to 1999; the page recommends four-digit years.
    • A mismatch of dates between workbooks can be corrected by adding or subtracting 1462 with Paste Special.
  • Convert dates stored as text to dates (Microsoft Support) Checked 2026-10-11.
    • Text dates are left-aligned; DATEVALUE returns a serial number that needs a date format applied, and January 1, 1900 is serial number 1.
    • Error checking can flag text dates with two-digit years and offer to convert them to 20XX or 19XX.
  • DATEVALUE function (Microsoft Support) Checked 2026-10-11.
    • DATEVALUE turns text into a serial number; a missing year uses the current year from the computer's clock, time information is ignored, and text outside January 1, 1900 to December 31, 9999 returns #VALUE!.
    • The page warns that the system date setting may change the results shown.
  • Stop automatically changing numbers to dates (Microsoft Support) Checked 2026-10-11.
    • Excel changes entries such as 12/2 to 2-Dec, and the page says there is no way to turn this off.
    • Preformatting cells as Text, or typing an apostrophe first, prevents the change.
  • W3C Note: Date and Time Formats Checked 2026-10-11.
    • The profile gives YYYY-MM-DD as the complete date format and is meant for standards that need an unambiguous representation of dates and times.
  • Format a date the way you want (Microsoft Support) Checked 2026-10-11.
    • When you type something Excel reads as a date, it formats it according to the default date setting in Control Panel.
    • Date formats that begin with an asterisk change when the regional configuration changes; formats without an asterisk do not.
  • How to correct a #VALUE! error (Microsoft Support) Checked 2026-10-11.
    • For dates stored as text that do not match the system date format, a real date can be built with a formula such as =DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2)), adjusted to the layout.