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

Data Analysis

  • How To Sort One Column or Multiple Columns in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How To Create Frequency Distribution in Excel
  • Add Outline to Data in Excel
  • Error Bars in Excel

References

  • How to get last row in mixed data with blanks in Excel
  • Two-column Lookup in Excel
  • How to use Excel INDIRECT Function
  • Find closest match in Excel
  • How to calculate two-way lookup VLOOKUP in Excel Table

Data Validations

  • Excel Data validation unique values only
  • Excel Data validation only dates between
  • Excel Data validation require unique number
  • Excel Data validation date in specific year
  • Excel Data validation date in next 30 days

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

  • IF with wildcards in Excel
  • How to use Excel FALSE Function
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel XOR Function

Date Time

  • EDATE function: Description, Usage, Syntax, Examples and Explanation
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Get days between dates ignoring years in Excel
  • How to calculate nth day of week in month in Excel
  • Add years to date in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Running count group by n size in Excel
  • Map text to numbers in Excel
  • How to randomly assign people to groups in Excel
  • How to randomly assign data to groups in Excel

General

  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • How to get original price from percentage discount in Excel
  • How to add sequential row numbers to a set of data in Excel
  • Count cells that do not contain many strings in Excel
  • How to count total columns in range in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning