Skip to content

Guide

Why Excel shows dates as numbers

A date that suddenly shows as 46037 has not been damaged. This explains how Excel stores dates and how to make them display — and export — correctly again.

2 min read

On this page
  1. 1Excel stores dates as serial numbers
  2. 2Turning the numbers back into dates
  3. 3The opposite problem: date-like text that isn’t a date
  4. 4Keeping dates intact when exporting
  5. 5Summary

Sometimes a column of dates in Excel shows 46037 instead of 2026-01-15. It often happens with files from other programs, or after a cell’s format was set to “General”. Nothing is broken: Excel stores dates as numbers underneath.

Excel stores dates as serial numbers

Excel counts days with 1 January 1900 as day 1 and stores each date as that day count (a serial number). The “2026-01-15” you normally see is just that number with a date format applied.

Serial number Date
1 1900-01-01
45292 2024-01-01
45658 2025-01-01
46037 2026-01-15

Times are stored as fractions: 46037.5 is noon on 15 January 2026. When the cell format becomes “General” or “Number”, the serial number shows through.

Note: some very old Mac Excel files count from 1 January 1904, so the same number can show a date 1,462 days (about four years) apart.

Turning the numbers back into dates

  1. Select the cells showing numbers.
  2. Press Ctrl + 1 to open Format Cells.
  3. On the Number tab choose Date and pick the style you want, such as 2026-01-15.

As a shortcut, select the cells and press Ctrl + Shift + 3 to apply a date format.

To create the date as text in another column, use a formula:

=TEXT(A2, "yyyy-mm-dd")

The opposite problem: date-like text that isn’t a date

If 2026-01-15 imported from a CSV stays left-aligned and won’t calculate, it was stored as text.

  • Select the cells, open Data → Text to Columns, and in the last step set the column data format to Date (YMD).
  • Or use =DATEVALUE(A2) and give the result a date format.

Keeping dates intact when exporting

When Excel dates are exported to CSV or JSON, some tools write the raw serial number, others a form like 1/15/26 that different countries read differently.

  • XLSX to CSV and XLSX to JSON write date cells in the international ISO format, e.g. 2026-01-15, which every program in every country reads the same way.
  • CSV to XLSX, to avoid damaging data, leaves date-like values as the original text. Use Text to Columns (above) if you need them as real dates in Excel.

Summary

A date showing as a number is Excel’s serial number peeking through; set the cell format to Date and it returns. When exchanging data with other programs, the ISO form 2026-01-15 is the safest. For another common Excel surprise, see leading zeros disappearing in Excel.

Tools used in this guide

Related guides