Excel Date Serial Converter
Turn 45658 into 1 January 2025 and dates back into serial numbers, convert pasted columns or a CSV column, and fix 1904 date shifts.
Działa w Twojej przeglądarce. Twoje pliki nigdy nie opuszczają urządzenia. Zobacz, jak to sprawdzić
…
Jak to zrobić
- 1Choose the system
Pick Excel 1900, Excel 1904 or Google Sheets and LibreOffice, and how typed dates like 05/03/2026 should be read.
- 2Convert one value
Type a serial number to see the date, or a date to see its serial.
- 3Paste a column
Copy a column from your sheet into Paste a column and copy the results back.
- 4Convert a CSV
Open a CSV file, choose the column and download the file with a converted column added.
- 5Fix shifted dates
Use the 1904 tab to add or subtract 1,462 days and copy the Excel formula.
- 6Check the notes
Read the note beside any line that could not be converted, such as dates before 1900.
O tym narzędziu
Spreadsheets store dates as numbers. In Excel, 1 is 1 January 1900, 45658 is 1 January 2025, and the part after the decimal point is the time of day, so 45658.75 is 6 pm. When an export loses its formatting, a database receives the raw number, or a script reads an XLSX file, you see 45658 instead of a date. This converter goes both ways. Type a serial to see the date, weekday, time and ISO 8601 form, or type a date in almost any layout to get the serial. Paste a whole column copied from Excel or Sheets and every line is converted in one go, numbers to dates and dates to numbers, with a note on each line that cannot be read. You can also open a CSV file, choose a column and download the file with a converted column added. Three date systems are covered: the Excel 1900 system used by Windows and modern Mac Excel, the 1904 system found in old Mac workbooks, and the system used by Google Sheets, LibreOffice and Numbers, which counts from 30 December 1899.
The 1900 leap-year bug
Excel treats 1900 as a leap year and shows serial 60 as 29 February 1900, a day that never existed. Lotus 1-2-3 had this bug and Excel kept it for compatibility. Every serial from 61 onwards (1 March 1900) is correct, and Google Sheets agrees with Excel from that date. Before it the two differ by one day, and the converter notes this on the affected lines.
The 1904 system and the 1,462-day shift
Workbooks created on old Macs count from 1 January 1904. The same date is 1,462 lower there (four years and one day). Copying dates between a 1904 workbook and a 1900 workbook therefore shifts every date by four years and a day. The fix tab adds or subtracts 1,462 and gives the matching Excel formulas.
Typed dates
Dates are read in ISO form (2026-03-05), with slashes or dots in day-month-year or month-day-year order (you choose which), as 5 Mar 2026 or March 5th 2026, and as eight digits such as 20260305. A time such as 14:30, 2:30 pm or 14:30:15.250 can follow.
Limits
Excel's 1900 system has no dates before 1 January 1900 and none after 31 December 9999; such values are reported, not guessed. Time zones are not stored in serial numbers, so none is applied. This is not a full XLSX reader: save the sheet as CSV first for the column converter.
Przykład z rozwiązaniem
An accounts export showed 45689.25 in a date column. In the 1900 system that is Saturday 1 February 2025 at 06:00. Pasting the column 45658, 45689.25 and 46331 gave 2025-01-01, 2025-02-01 06:00 and 2026-11-05. A colleague's old Mac workbook showed the order date 44197 as 2 January 2025; in the 1900 system the same date is 45659, which is 44197 plus 1,462.
W skrócie
- Kategoria: Programowanie i dane
- Działa w przeglądarce, bez rejestracji i wysyłania.
- Wpisane informacje zostają na Twoim urządzeniu.
- Dostępne po angielsku.
- Treść ostatnio sprawdzona:
- Oficjalne źródło: Microsoft Support: Date systems in Excel
Najczęstsze pytania
Why does Excel show a number instead of my date?
The cell has lost its date format, or the data came from a system that saved the raw serial. Select the cells and choose a date format, or convert the numbers here and paste the results back.
What is serial number 60 in Excel?
It is 29 February 1900, a date that does not exist. Excel keeps it so that old Lotus 1-2-3 files open with the same dates. Serials from 61 onwards are correct.
Are Google Sheets serial numbers the same as Excel?
Yes for every date from 1 March 1900. Google Sheets counts from 30 December 1899 without the leap-year bug, so earlier dates differ by one day, and Sheets also accepts negative serials.
My dates are four years and one day off. Why?
One workbook uses the 1904 date system and the other the 1900 system. Add 1,462 to dates pasted from a 1904 workbook into a 1900 one, or subtract it the other way. The setting is under Excel Options, Advanced, Use 1904 date system.
How do I convert Unix time to an Excel date?
Divide the Unix seconds by 86,400 and add 25,569, or use =(A2/86400)+DATE(1970,1,1) in Excel. The Unix time panel shows both directions and the date in UTC.
Does it handle times as well as dates?
Yes. The decimal part is the fraction of a day: .5 is noon, .25 is 6 am and .75 is 6 pm. Times are rounded to the millisecond, as Excel displays them.
