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

Data Analysis

  • Remove Duplicates Example in Excel
  • How to Create Area Chart in Excel
  • How to create Checklist in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Example of COUNTIFS with variable table column in Excel

References

  • How to reference named range different sheet in Excel
  • How to get last row in numeric data in Excel
  • How to get relative row numbers in a range in Excel
  • How to create dynamic named range with OFFSET in Excel
  • How to get address of first cell in range in Excel

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation must begin with
  • Excel Data validation require unique number
  • Excel Data validation allow uppercase only
  • Excel Data validation date in specific year

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.

Worked Example:   Excel Date & Time Functions Example

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.

Worked Example:   Excel Data validation date in specific year

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:

Get day from date in Excel

Next Post:

Calculate loan interest in given year in Excel

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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel
  • Invoice status with nested if in Excel

Date Time

  • How to get same date next year or previous year in Excel
  • Get last day of month in Excel
  • How to calculate workdays per month in Excel
  • How to calculate nth day of year in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel
  • Group times into 3 hour buckets in Excel
  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel

General

  • How to fill cell ranges with random text values in Excel
  • Spell Check in Excel
  • How to calculate percent of goal in Excel
  • Freeze and Unfreeze Panes in Excel
  • Check if multiple cells have same value with case sensitive in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning