Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create Area Chart in Excel
  • Understanding Pivot Tables in Excel
  • Remove Duplicates Example in Excel
  • How to create Checklist in Excel
  • How to add Trendline to a chart in Excel

References

  • How to use Excel VLOOKUP Function
  • Count rows that contain specific values in Excel
  • How to retrieve first match between two ranges in Excel
  • Extract all partial matches in Excel
  • Lookup entire row in Excel

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation require unique number
  • Excel Data validation must not contain
  • Excel Data validation only dates between
  • Excel Data validation with conditional list

How to get year from date in Excel

by

If you need to extract the year from a date, you can use the YEAR function.

Formula

=YEAR(date)

Explanation

In the generic form of the formula above, the date  must be in a form that Excel recognizes as a valid date.

How the formula works

The YEAR function takes just one argument, the date from which you want to extract the year. In the example, the formula is:

=YEAR(B4)

B4 contains a date value for January 5, 2016. The YEAR function returns the number 2016 representing the year of the date.

Note that you can use YEAR to extract the year from a day entered as text:

=YEAR("1/5/2016")

However, using text for dates can cause unpredictable results on computers using different regional date settings. In general it’s better (and more flexible) to supply an address to a cell that already contains a valid date.

Display only year

If you want to enter a date and only display the year, you can apply a custom number format like “yyyy” or “yy”.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel AND Function
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel XOR Function
  • How to use Excel TRUE Function

Date Time

  • TODAY function: Description, Usage, Syntax, Examples and Explanation
  • Get day name from date in Excel
  • Display the current date and time in Excel
  • Get project end date in Excel
  • Generate series of dates by weekends in Excel

Grouping

  • If cell contains one of many things in Excel
  • Running count group by n size in Excel
  • Categorize text with keywords in Excel
  • Group times into unequal buckets in Excel
  • Group numbers with VLOOKUP in Excel

General

  • How to count total number of cells in a rectangular range in Excel
  • How to create dynamic named range with INDEX in Excel
  • How to calculate profit margin percentage in Excel
  • How to generate random date between two dates in Excel
  • 231 Keyboard Shortcut Keys In Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning