
When Excel Dates Appear as Numbers: Complete Fix for Serial Values and Text Dates
When Excel dates appear as numbers, you can usually fix the issue immediately by changing the number format to a date format or converting text dates with DATEVALUE/Text to Columns. Also check locale settings (MDY/DMY) and differences between the 1900 and 1904 date systems.
Quick Fix (3 Minutes)
- Select the range → Ctrl+1 > Date or use the custom format
yyyy-mm-dd. - For text dates, use Data > Text to Columns (Finish) or
=DATEVALUE(). - For format conflicts, specify MDY/DMY in Text to Columns.
Why Does It Appear as a Number?
Excel stores dates and times as serial values (integers/decimals). If the display format is Number or General, a date may appear as 45123. Changing it to a date format displays it correctly.
Solutions by Situation
Display a Serial Value as a Date
Fix it immediately with Ctrl+1 > Date or the custom format yyyy-mm-dd.
Convert Text Dates in Bulk
- Text to Columns: Delimited → Finish (specify DMY/MDY if there is a locale conflict)
=DATEVALUE(A2); for dates with times, use+TIMEVALUE(A2)- Remove NBSP:
=DATEVALUE(TRIM(SUBSTITUTE(A2,CHAR(160)," ")))
Regional Formats and Separators
Check the Use system separators setting under File > Options > Advanced, or explicitly specify the date format in Text to Columns.
Dates with Times (DateTime)
=DATEVALUE(LEFT(A2,10)) + TIMEVALUE(RIGHT(A2,8))
1900/1904 Date System Conflicts
Set both workbooks to the same system, then correct misaligned values with ±1462.
Practical Examples
// YYYY.MM.DD → date
=DATE(LEFT(A2,4), MID(A2,6,2), RIGHT(A2,2))
// DateTime text → date/time
=DATEVALUE(LEFT(A2,10)) + TIMEVALUE(RIGHT(A2,8))
Troubleshooting
| Symptom | Cause | Solution |
|---|---|---|
| Appears as 45123 | Display format = General | Ctrl+1 > Date |
| Cannot calculate or sort | Text date | Text to Columns, DATEVALUE |
| Month and day are reversed | MDY/DMY conflict | Specify the format or build the date with DATE |
| Off by four years | 1900/1904 date system | Use the same system; adjust by ±1462 |
Related Articles
- Fix “Number Stored as Text”
- Fix Garbled CSV Files (UTF-8 and Delimiters)
- TEXTSPLIT Preprocessing
- Get Started with PivotTables in 10 Minutes
- Practical SUMIFS and AVERAGEIFS Patterns