Excel Limit Date Range: Max & Min Dates
In this article
Excel’s date range is limited by its underlying date system: dates must fall between January 1, 1900 and December 31, 9999. This article explains that limit, how Excel stores dates, how to work with dates near the edges, and common problems you may hit.
How Excel Stores Dates
Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2024 is serial number 45292 because it is 45,292 days after January 1, 1900. The serial number is what Excel actually uses in formulas; the date format is just a display mask. This system is sometimes called the 1900 date system, and it is the default on Windows. Mac versions of Excel also use the 1900 date system since Excel 2011, though older Mac versions used a 1904 date system where January 1, 1904 is serial 0.
The maximum serial number is 2,958,465, which corresponds to December 31, 9999. The minimum is 1, which is January 1, 1900. If you type a date outside this range, Excel treats it as text, not a date, and you cannot use it in date arithmetic.
The 1900 Leap Year Bug
Excel intentionally treats 1900 as a leap year, even though it was not. This is a compatibility feature with Lotus 1-2-3, an early spreadsheet program that had this bug. The practical effect is that Excel assigns serial number 60 to the fictional date February 29, 1900, and all dates after February 28, 1900 are shifted by one day relative to the true calendar. For example, March 1, 1900 has serial number 61, but the correct serial should be 60. This does not affect dates after March 1, 1900 because the shift is constant, but it means you cannot use dates before March 1, 1900 for accurate day-of-week calculations. If you need to work with historical dates before 1900, you must use a different system, like the ISO 8601 calendar or a custom date system.
1904 Date System (Mac Compatibility)
Excel also supports a 1904 date system, where January 1, 1904 is serial 0, and the maximum date is still December 31, 9999 but with a different serial number. The 1904 system exists for compatibility with early Macintosh Excel versions. If you open a workbook created on a Mac that uses the 1904 system, Excel on Windows will automatically convert the dates, but you may see a 4-year difference if the workbook is not converted properly. You can check which system a workbook uses in Excel options (under Advanced, “When calculating this workbook”). Mixing the two systems between workbooks can cause date serial numbers to be off by 1,462 days (4 years including one leap day).
Practical Limits: Years 1900–9999
While the theoretical range is 1900–9999, practical use rarely goes beyond a few centuries. Still, you may encounter limits when entering dates:
- Typing a year with only two digits: Excel interprets 00–29 as 2000–2029, and 30–99 as 1930–1999. This can cause unexpected dates if you type “1/1/50” intending 2050; Excel sees 1950.
- Negative serial numbers are not allowed. Dates before January 1, 1900 cannot be entered as dates; you must store them as text or use a different system.
- December 31, 9999 is the last date. If you try to enter January 1, 10000, Excel converts it to text.
Working with Dates Near the Limits
If you need to work with dates outside the supported range, you have a few options:
- Use text dates with a consistent format (e.g., “1500-01-15”) and write your own comparison formulas.
- Use a custom calendar system, such as the Julian day number, which counts days since January 1, 4713 BC. You can convert to and from Julian day numbers with formulas.
- For dates before 1900, you can use the DATE function with a negative year? No, DATE does not accept years less than 1900 in the 1900 system. Instead, use a known reference date and subtract days.
For example, to find the serial number for January 1, 1800, you can compute the number of days from January 1, 1900 to January 1, 1800, which is -36523 days (approximately). But Excel cannot store negative serial numbers, so you must store the date as text or use a different reference.
Common Date Entry Mistakes
Many date problems come from entry errors, not the limit itself:
- Entering a date with slashes or dashes that Excel does not recognize, turning it into text.
- Using a two-digit year when you need a four-digit year.
- Formatting a cell as text before entering a date, which prevents Excel from converting it.
- Copying dates from another program that uses a different date system, causing a 4-year shift.
To avoid these, always enter dates with four-digit years, and verify that the cell is formatted as a date. If Excel shows a date as a number, change the number format to a date format.
Alternatives for Very Old Dates
If your work involves historical dates before 1900, consider using the ISO 8601 format as text, or use a dedicated date library. In Excel, you can also use the DATEDIF function with text dates? No, DATEDIF requires real dates. Instead, you can use a custom function in VBA that handles dates outside the Excel range, but that requires programming. For most users, the 1900–9999 range is more than enough.
Frequently Asked Questions
What is the maximum date in Excel?
The maximum date is December 31, 9999. If you enter a date beyond that, Excel treats it as text.
Why does Excel think 1900 is a leap year?
Excel inherited a bug from Lotus 1-2-3 that treated 1900 as a leap year. This was kept for compatibility, and it only affects dates before March 1, 1900.
Can I use dates before 1900 in Excel?
No, not as real dates. You can store them as text or use a custom system, but Excel’s date functions will not work with them.
How do I avoid the 1904 date system problem?
Check the workbook’s date system in Excel Options. If you receive a workbook with a different system, you can convert dates by adding or subtracting 1,462 days, but it is easier to use the “Date system” setting to match.
What happens if I enter a date with a two-digit year?
Excel interprets years 00–29 as 2000–2029 and 30–99 as 1930–1999. This can cause errors if you intend a different century.
Can I use negative dates in Excel?
No, negative serial numbers are not allowed. Dates must be between 1 and 2,958,465.