YEAR
Returns the year of the date value.
Syntax
=YEAR(DateValue, [Round])
Arguments
Name | Type | Description |
---|---|---|
DateValue | Number | A serial number consists out of two numbers. The number to the left of the decimal define the days since 01.01.1900. The number to the right of the decimal define the fraction of the day. |
Round (optional) | Boolean | Defines, if value should be rounded. Default value: TRUE |
Return
Type | Description |
---|---|
Number | Year evaluated from date value. |
Examples
Formula | Result | Comment |
---|---|---|
| 2018 | The given date value represents the 18th of May, 2018 |
| 2008 | Rounded to 2008 |
| 2007 | Same input value as before but no rounding applied |