FormulaCraft

How to convert a serial number to a date in Excel and Google Sheets

Excel & Google Sheets
=TEXT(A2,"YYYY-MM-DD")

Verified example

Computed by a real spreadsheet engine on the sample data below.

Serial NumberDate
45297
45383
44927
45658

=TEXT(A2,"YYYY-MM-DD")2024-01-06

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1If the serial number is already in a cell (e.g., A2 contains 45297), select the cell and change its format to Date — no formula needed.
  2. 2To convert and display as text, use =TEXT(A2,"YYYY-MM-DD") in B2.
  3. 3To keep it as a date value for further calculations, format A2 as Date (Ctrl+1 > Date in Excel or Format > Number > Date in Sheets).
  4. 4Note: Excel's date system starts at 1 = January 1, 1900; Sheets also defaults to 1900 (but can use 1904 system).

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why does my date show 1904 when I expect a 2024 date?

The 1904 date system may be enabled. In Excel: File > Options > Advanced > uncheck 'Use 1904 date system'. In Sheets it defaults to 1900.

What does serial number 1 equal?

In Excel's 1900 system, serial 1 = January 1, 1900. Serial 45297 = January 1, 2024.

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: