FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

YEAR in Google Sheets

YEAR with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the YEAR Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Year of an order

A
1Order date
23/9/2024

Formula: C2: =YEAR(A2)

Result: 2024

The date March 9, 2024 gives its year, 2024.

Fiscal year starting in July

A
1Date
28/20/2024

Formula: C2: =YEAR(A2)+(MONTH(A2)>=7)

Result: 2025

August is on or after July, so TRUE adds 1 and the fiscal year is 2025.

Test a year

A
1Date
21/15/2024

Formula: C2: =YEAR(A2)=2024

Result: TRUE

The comparison returns TRUE for any date in 2024.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =YEAR(A2)

Example spreadsheet for YEAR
ABCDEF
1StartEndHolidayTimeResult
23/15/20266/20/20265/1/202614:452026
31/31/20262/28/20265/9/202609:30
412/24/20251/9/2026
Result in F2: 2026

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.