Dates and Times
Date serials
Excel stores a date as a number: the count of days since the start of 1900, so 1 is 1900-01-01 and 45658 is 2025-01-01. Date calculations work on these serials.
The day that never existed
=N(DATE(1900,2,29)) is 60, and =WORKDAY(59,1) steps onto that day. A Gregorian calendar library has no such date, so preserving the numbering needs an explicit serial-60 case. Serial 0 formats as 1900/1/0, not as the last day of 1899.
When the previous coupon date would fall before 1900-01-01, the coupon calculation floors it at serial 0. =COUPPCD(1,DATE(1900,6,15),2,0) is 0 under every basis and at frequencies 1, 2 and 4, while a maturity of DATE(1900,7,1) gives 1 (golden: coupon_calendar_floor).
Japanese eras
| Formula | Excel (mac-365-ja_JP) | Rule |
|---|---|---|
=DATEVALUE("令和元年5月1日") | #VALUE! | The first-year form 元年 is not accepted as input. |
=DATEVALUE("平成32年4月30日") | 43951 | A year past the end of an era is accepted and carried into the next era. |
=TEXT(43586,"ggge年m月d日") | "令和1年5月1日" | The ggge code prints the first year as 1. |
TEXT with the [$-ja-JP-x-gannen] tag | 令和元年… | Only this tag produces the 元年 spelling. |
TIMEVALUE("12:60") rolls over to 13:00 instead of failing. On Windows ja-JP, TEXT accepts an array of formats, and [$-LCID] tags render Windows' own month and day names: [$-411]mmm is 1, [$-404]mmmm is 一月.
The 1904 date system
Workbooks saved with the 1904 date system are read with that system. Serial 0 is 1904-01-01, and a negative serial formats as a mirrored date (-1904/1/2) instead of an error.
Checked against Excel
The Excel column was captured from a real Excel build. The Formulon column is what the WASM engine in this page returns for the same formula under the same profile.
Powered by the real Formulon engine (WASM) — it runs entirely in your browser, nothing is uploaded.
Read next
- Blanks, coercion and error order — the three kinds of empty cell and which error wins.
- Locale profiles — which profile each capture belongs to.