You open a spreadsheet expecting to see a neat column of invoice dates, birthdays, or project deadlines, and instead every cell displays a mysterious five-digit number such as 45678 or 45912. Nothing has been deleted or corrupted—your dates are still safely stored inside the spreadsheet, just displayed in Excel’s hidden counting system.
Once you understand why those numbers appear, switching them back into proper readable dates takes only a couple of clicks—and you can easily stop formulas or pasted data from flipping back to plain numbers in the future.
What 5-Digit Numbers Like 45678 Actually Mean in Excel
Behind the scenes, Microsoft Excel stores every modern date as a simple whole number counting how many days have passed since 1 January 1900. In that system, day 1 is 1 January 1900, and dates in the mid-2020s land squarely in the mid-45,000s (for example, 45658 represents 1 January 2025).
Excel keeps dates as raw numbers so you can subtract two dates to count days between them or sort a column chronologically. Normally, a cell’s Number Format puts a friendly mask over that number—such as 14/03/2026 or 14 Mar 2026. Whenever the cell formatting resets to General or Number, that mask disappears and Excel reveals the raw five-digit day count underneath.
Switch the Cells Back to a Readable Date Format
If your spreadsheet already shows five-digit numbers, your dates are intact and simply need the Date mask reapplied.
- Highlight all the cells showing five-digit numbers.
- Click the Home tab on the ribbon at the top of Excel.
- Look in the Number group and click the drop-down box that currently reads General or Number.
- Choose Short Date (for example,
15/05/2026) or Long Date (such as15 May 2026).
On Windows, you can also highlight the cells and press Ctrl + Shift + # (on many UK keyboards, Ctrl + Shift + 3) to apply Excel’s standard date format straight away. If the cells turn into ##### right after applying the date format, the column simply needs to be widened slightly; see our quick guide on why Excel shows hashtags instead of numbers or dates.
Why Dates Keep Turning Back into Numbers When You Copy or Use Formulas
Seeing five-digit numbers usually happens right after one of three everyday actions:
- Pasting Values: Using Paste Values copies the underlying number (
45678) without copying the cell’s Date formatting, leaving the destination cell set to General. - Clearing formatting with Clear Formats or Clear All: Stripping borders or background shading also resets a date cell back to General.
- Combining dates inside text formulas: Joining a date onto words with
&—such as="Due by " & A2—turns the reference into raw text, which immediately reveals the underlying serial number (Due by 45678).
Keep Proper Dates Inside Sentences and Concatenated Text
If you are building a reminder label or email summary using a formula like ="Invoice sent on " & B2 and getting Invoice sent on 45678, formatting the cell as a Date will not fix it—you need the TEXT function inside the formula itself.
Update the formula to wrap the date cell inside TEXT with your preferred format:
="Invoice sent on " & TEXT(B2, "dd/mm/yyyy")
Replace "dd/mm/yyyy" with "d mmmm yyyy" if you would rather display the month written out in full. When copying and pasting dates between sheets without breaking their formatting, choose Values & Number Formatting from the Paste Special menu instead of plain Values, and your dates will stay readable every time.