Year of an order
| A | |
|---|---|
| 1 | Order date |
| 2 | 3/9/2024 |
Formula: C2: =YEAR(A2)
Result: 2024
The date March 9, 2024 gives its year, 2024.
YEAR with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the YEAR Excel guide; check the function help in Google Sheets for its own argument list.
| A | |
|---|---|
| 1 | Order date |
| 2 | 3/9/2024 |
Formula: C2: =YEAR(A2)
Result: 2024
The date March 9, 2024 gives its year, 2024.
| A | |
|---|---|
| 1 | Date |
| 2 | 8/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.
| A | |
|---|---|
| 1 | Date |
| 2 | 1/15/2024 |
Formula: C2: =YEAR(A2)=2024
Result: TRUE
The comparison returns TRUE for any date in 2024.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =YEAR(A2)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Start | End | Holiday | Time | Result | |
| 2 | 3/15/2026 | 6/20/2026 | 5/1/2026 | 14:45 | 2026 | |
| 3 | 1/31/2026 | 2/28/2026 | 5/9/2026 | 09:30 | ||
| 4 | 12/24/2025 | 1/9/2026 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page