How to Extract Year from Date in Excel (3 Ways)

We have a dataset that includes player names and their dates of birth. We want to extract the year from the dates.


Method 1 – Inserting the YEAR Function to Extract the Year from a Date in Excel

Steps

  • Select cell D5, where you want to put the extracted year values.
  • Insert the following formula in the formula box:
=YEAR(C5)

We put cell C5 because we want to extract the year from this particular cell.

  • Press Enter. It’ll automatically show the year value.

How to Extract Year from Date in Excel

  • Drag the Fill Handle icon to the last cell where you want to put the extracted year. We get all the extracted year values.

How to Extract Year from Date in Excel

Read More: How to Extract Month from Date in Excel


Method 2 – Using the TEXT Function to Extract Year

Steps

  • Insert the following formula in cell D5.
=TEXT(C5,”yyyy”)

C5 denotes the cell value and yyyy denotes the format text. Excel recognizes this as the format for years.

  • Press Enter and you’ll get the required year value.
  • Drag the Fill Handle icon to the last cell where you want to extract the year value for the respective cells.

How to Extract Year from Date in Excel

Read More: How to Extract Month and Day from Date in Excel


Method 3 – Using Excel Format Cells to Extract the Year from the Date

Excel has 4 different ways to open Format Cells.

Keyboard Shortcut:

Press Ctrl + 1, and the Format cells box will pop up.

Format Cells Option:

Select the text from which you want to extract years, right-click on the selected text cell, and select Format cells.

From Home Tab:

In the Home tab, there is a Cells section where you can choose the Format option.

From the Number section:

Select Format from the Number group in the Home tab.

Steps

  • Select the data from which you want to extract the year and copy it to another column. We copied the range of cells C5:C10 and pasted it into the range of cells D5:D10.

  • Open Format Cells. We did it through the Number section from the Home. In the Number section, there is a small arrow at the bottom. Click on it and the Format Cells window will pop up.

  • In the Format Cells window, select the Number tab.

  • In the Category section, select Custom and change the type to yyyy.
  • Click on OK.

How to Extract Year from Data in Excel

  • This will modify all the selected cells and provide the year only.

How to Extract Year from Date in Excel

Read More: How to Extract Data from Cell in Excel 


Download the Practice Workbook


Related Articles

<< Go Back To Extract Data Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Durjoy Paul
Durjoy Paul

Durjoy Kumar, with a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, is a dedicated contributor to the ExcelDemy project. His substantial contributions include crafting numerous articles and demonstrating expertise in Excel and VBA. Durjoy adeptly automates Excel challenges using VBA macros, offering valuable solutions for user interface challenges. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel, SPSS, C, C++, C#, JavaScript, Python Web Scraping, Data Entry... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo