Excel stores a date as a count of days. 46387 is December 31, 2026. A cell that shows 46387 holds the right date but is formatted as General or Number, so it shows the count instead of the date. This often happens when a number or a date that came from another program lands in a General cell. Select the cell, press Ctrl+1 (Command+1 on a Mac), choose Date, pick a style and select OK.
If you see ##### instead of a number, the column is too narrow or the value is negative. Both are covered further down.
Every table in this post comes from a run in Excel 2024 (version 16.0, build 20625) on November 29, 2026, unless the text names Microsoft’s help as the source.
How to get the date back
- Select the cells that show numbers.
- Press Ctrl+1 (Command+1 on a Mac), choose Date in the Category list, pick a style and select OK. Microsoft’s help also lists Ctrl+Shift+# as a shortcut for the default date format. We did not try it.
- If you want a day-first or year-first style, choose Custom and type a code such as dd/mm/yyyy or yyyy-mm-dd.
Nothing about the date changes, only the way it looks. Choosing General for a date does the reverse and shows its number, as Microsoft’s help notes.
Some of the styles in that list follow the computer’s regional settings and some do not. The post on Short Date and Long Date shows which.
If the number was never meant to be a date, for example a part number that Excel changed on entry, read why Excel turns text into dates instead.
What the number counts
In the 1900 date system, which is the default in Excel for Windows, 1 is January 1, 1900, and every day adds 1. These are the numbers Excel gave us with the DATE function:
| Date | Number |
|---|---|
| January 1, 1900 | 1 |
| February 28, 1900 | 59 |
| March 1, 1900 | 61 |
| January 1, 2000 | 36526 |
| July 5, 2011 | 40729 |
| January 1, 2026 | 46023 |
| March 4, 2026 | 46085 |
| April 3, 2026 | 46115 |
| December 31, 2026 | 46387 |
| December 31, 9999 | 2958465 |
July 5, 2011 is also the example in Microsoft’s page on date systems, which gives the same number. Number 60 is missing from the table on purpose. The section on the 1900 leap day below explains why.
What the number lets you do
Because dates are numbers, you can subtract them. We typed 3/4/2026 in A1 and 4/3/2026 in B1 on a PC with US settings, so A1 is March 4 and B1 is April 3. The formula =B1-A1 gave 30, shown as a plain number. That is 46115 minus 46085, the 30 days between them. Adding works as well: =A1+30 gave 4/3/2026.
The part after the decimal point is the time of day. 46387.5 shown with the format h:mm AM/PM gave 12:00 PM, and 46387.75 with the format m/d/yyyy h:mm AM/PM gave 12/31/2026 6:00 PM.
The same number can look many ways. This is the one cell holding 46387, shown with different format codes:
| Format code | What the cell shows |
|---|---|
| General | 46387 |
| m/d/yyyy | 12/31/2026 |
| dd/mm/yyyy | 31/12/2026 |
| yyyy-mm-dd | 2026-12-31 |
| mmmm d, yyyy | December 31, 2026 |
| dddd | Thursday |
| 0.00 | 46387.00 |
When you see ##### instead
Two causes showed up in our test.
The column is too narrow
We put 46387 in a cell formatted as dddd, mmmm dd, yyyy. In a column four characters wide it showed ####. In a column 30 wide it showed Thursday, December 31, 2026. Double-click the right edge of the column heading to fit it, as Microsoft’s help suggests.
The number is negative
A cell holding -1 with a date format showed a long row of # signs, even in a wide column. In the 1900 date system a negative number cannot be shown as a date. A subtraction that comes out negative, in a cell with a date format, looks like this.
Text that only looks like a date
Dates can also arrive as text, usually left-aligned. In our test, a cell holding the text 12/31/2026 became 46387 through =DATEVALUE(A1), and also through =A1+0. That worked on a computer set to US order. Text in the other order does not work there: =DATEVALUE(“25/12/2026”) gave #VALUE! in the same run. The date format converter fixes lists like that, and the Excel steps on the same page cover a column that is already in your sheet.
The same date can have another number: the 1904 system
Some workbooks count from January 1, 1904 instead. Excel for Mac used this system in its early versions. In a workbook set to the 1904 system, =DATE(2026,12,31) gave 44925 in our test. The same date is 1,462 days lower than in the 1900 system, and Microsoft gives that same difference in its page.
That is why a number that is right in one workbook can show a date four years and a day later in another. When we typed 46387 into a 1904 workbook with the format m/d/yyyy, it showed 1/1/2031.
If dates you copy between workbooks are off by four years, look at File, Options, Advanced, and the check box Use 1904 date system under When calculating this workbook. Microsoft’s date systems page also describes a setting called Automatically convert date system, in the Mac version of Excel (Preferences, Edit, Date Options). When it is on, dates are converted as you paste between the two systems.
The day that never happened
Excel counts February 29, 1900 as day 60. That day does not exist, because 1900 was not a leap year. Microsoft says the reason is compatibility with Lotus 1-2-3, which made the same mistake, and that Excel keeps the behavior on purpose.
We saw it in two ways. =DATE(1900,2,29) gave 60, and typing 2/29/1900 into a cell gave 60 as well. And =WEEKDAY(1,2), which asks for the weekday of January 1, 1900 with Monday as 1, gave 7, a Sunday. January 1, 1900 was a Monday.
For any date from March 1, 1900 onward, none of this matters. Microsoft says the only effect is that WEEKDAY gives wrong answers for earlier dates.
Sources
All pages below were read on November 29, 2026.
- Date systems in Excel, Microsoft Support.
- Excel incorrectly assumes that the year 1900 is a leap year, Microsoft Learn.
- Format numbers as dates or times, Microsoft Support.
- Format a date the way you want in Excel, Microsoft Support.



