ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > Excel YEAR Function

Excel YEAR Function

How to Use Excel YEAR Function
Table of contents :
  • What is the Excel YEAR Function?
  • YEAR Syntax
  • How to Use YEAR Function in Excel
  • YEAR Example

Excel YEAR Function

What is the Excel YEAR Function?

The Excel YEAR function returns the year corresponding to date as a 4-digit number starting from 1900 until 9999. Use the YEAR function to extract the year from a date into a cell.

Use the DAY function to extract a day number and use the MONTH function to extract a month number

YEAR Syntax

YEAR(serial_number)

serial_number, required, a valid Excel date from which to extract the year.

Usage Note:

  • Excel only accepts dates from January 1, 1900, to December 31, 9999, any date outside the range causes Excel to return a #VALUE error.

How to Use YEAR Function in Excel

Pay attention to the data in column A; there are seven dates with various display formats. Column B contains the YEAR function, extracts the year number from the date. The results are in accordance with the date entered except the last two dates. Why? Let’s look at one by one.

YEAR Function #1 – YEAR Function #5

There are many formats for displaying a date, but a valid excel date format must comply with the Windows regional settings on each computer.

To find out the valid Excel date format, look at the formula bar. The date in the second row until the sixth row has the same valid excel date format mm/dd/yyyy, even though the format of the display varies.

The result is the YEAR function #1 until the YEAR function #5 returns the correct numbers.

How to Get Year from Date in Excel

YEAR Function #6

The YEAR function on the seventh row returns a #VALUE! error, because a valid excel date format does not match the Windows regional settings format.

Extract Year from Date in Excel

Please look at the formula bar; the date is a text. The display format is the same as the date on the second row, but the actual data is text. Note the quotation marks at the beginning; it is also a sign that the data on the seventh row is a text, not a date.

YEAR Function #7

Date in eight row matches to the valid excel date format; the problem is the date entered is less than January 1, 1900. Excel will consider it a text and returns the same error as the date in the previous row.

Excel Year from Date

YEAR Example

Another article using or explain about YEAR Function
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Separate Date and Time in Excel
  • Excel YEAR Function

Another Date/Time Function

Another article about Date/Time Function
  • Excel WEEKDAY Function
  • Excel TIMEVALUE Function
  • Excel TIME Function
  • Excel HOUR Function
  • Excel MINUTE Function
  • Excel SECOND Function
  • Excel DATE Function
  • Excel YEAR Function
  • Excel MONTH Function
  • Excel DAY Function
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Multiple IF Statements in Excel
What is Multiple IF Statements? Multiple IF statements are also …

Multiple IF Statements in Excel

Excel Concatenate Function
What is the Excel CONCATENATE Function? The excel CONCATENATE function …

Excel CONCATENATE Function

Excel Month Function
What is the Excel MONTH Function? The Excel MONTH function …

Excel MONTH Function

Excel VLOOKUP Function
What is the Excel VLOOKUP Function? The VLOOKUP function is …

Excel VLOOKUP Function

Excel LEN Function
What is the Excel LEN Function? The excel LEN function …

Excel LEN Function

Tags:Convert Date to Month and Year Convert Date to Month and Year in Excel Convert Date to Year in Excel Date/Time Function Excel Convert Date to Month and Year Excel Convert Date to Year Excel Current Year Excel Date Functions Excel Formula for Month and Year Excel Year Excel Year from Date Excel Year Function Extract Year from Date in Excel Get Year from Date How to Calculate Year to Date How to Convert Date to Month and Year in Excel How to Extract Month and Year From Date in Excel How to Get Month and Year From Date in Excel How to Get Year From Date in Excel Month And Year in Excel Month Year Excel Year Formula Excel Year Function

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh