← All functions

YEAR

Quirk found

Category: Date and time · Last tested 2026-07-04

Support matrix

EngineDocumentedLive-testedVerdict
Excel Yes Not yet n/a
Google Sheets Yes Not yet n/a
LibreOffice Calc Yes Yes (24.2.7.2, 2026-07-04) Quirk found

Discovered quirks

Executed test cases

LibreOffice Calc 24.2.7.2 (tested 2026-07-04)

FormulaDescriptionResultExpectedVerdict
=YEAR(DATE(2024,3,15)) YEAR applied to a constructed date 2024 2024 Matched
=YEAR(1) YEAR applied directly to the raw serial number 1 (the classic Excel epoch, serial 1 = Jan 1, 1900) 1899 1900
Serial 1 is Jan 1, 1900 in the 1900 date system
Mismatch
=YEAR(45366.75) A serial with a fractional (time-of-day) component still resolves to the correct calendar year 2024 2024
45366 = 2024-03-15; the .75 fractional day (18:00) is ignored by YEAR
Matched

Docs & syntax