# YEAR Function

> Return the year of a date with the YEAR formula function of TX Sheet Control: serial numbers, date text, #NUM! and #VALUE! errors and an example formula.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > YEAR Function
- **195 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/year/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/year/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/year/llms-full.txt

---

Return the year of a date as a number. `serial_number` is the date, as a serial number, a date returned by another function or date text such as `"2026-10-09"`. A negative serial number returns `#NUM!`, and text that is not a date returns `#VALUE!`.

### Syntax

```text
YEAR(serial_number)
```

Category: Date & Time. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=YEAR(45292)
```

The formula returns 2024: the serial number 45292 is January 1, 2024.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [XOR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/xor/llms-full.txt)
- **Next:** [YEARFRAC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/yearfrac/llms-full.txt)
