Google Sheets YEAR Function

This post will guide you how to use Google Sheets YEAR function with syntax and examples.

Description


The Google Sheets YEAR function returns a four-digit year from a given date value, the year is returned as an integer ranging from 1900 to 9999. So you can use the YEAR function to get the year component of a date. You can also use this function to extract the year portion from an Excel date and feed the returned value into another formula.

The YEAR function can be used to get the year component of a data as a 4-digit number in google sheets. The purpose of this function is to get the yar from a data and the returned value is a year as 4-digit number.

The YEAR function is a build-in function in Google Sheets and it is categorized as a Date function.

Syntax


The syntax of the YEAR function is as below:

=YEAR (serial_number)

Where the YEAR function arguments is:

  • Serial_number -This is a required argument. A valid date value that contains the year component you want to extract. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2019,3,15) for the 15th day of March, 2019.

Note:

  • A serial date is how the google sheets stores dates and it represents the number of days since 1900-01-01, so the January 1, 1900 date is serial number 1 by default.
  • If the serial_number is not a valid date, it will return #VALUE! Error.

Google Sheets YEAR Function Examples


The below examples will show you how to use google sheets YEAR Function to return an integer number that representing the year component of a given date.

1# get year of the date in Cell A1, enter the following formula in Cell B1.

=YEAR(A1)

google sheets year function1

 

 

Related Posts

Add Months To Date In Google Sheets

It is important to adjust time periods when performing financial modeling. In Google Sheets, you can use the MONTH function to add a specific number of months to a date. The MONTH function takes one argument: the number of months ...

Google Sheets EXP Function

This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number.  The constant e is equal to 2.71828182845904, and it ...

Google Sheets FACT Function

This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number.  The factorial of a given number is equal to 1*2*3…* number. ...

Google Sheets EVEN Function

This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...

Google Sheets COUNTBLANK Function

This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...

Sidebar