ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Formula > How to Extract Day, Month and Year from Date in Excel

How to Extract Day, Month and Year from Date in Excel

How to Extract Day, Month and Year from Date in Excel
Table of contents :
  • Extract Day from Date in Excel
  • Extract Month from Date in Excel
  • Extract Year from Date in Excel

Excel provides three different functions to extract a day, month, and year from date. The following is an explanation of each function to extract each value.

Extract Day from Date in Excel

The formula

=DAY(A2)

The result

If you want to extract the day from the date, you can use the DAY function. The DAY function requires only one argument, fill it with valid excel date value.

The result, there are four days value and one error #VALUE!. An error occurred because 2/29/2006 is not a valid Excel date value. Why? Because 2006 is not a leap year, so there is no February 29th.

The DAY function result is a number between 1 and 31.

Extract Month from Date in Excel

The formula

=MONTH(A2)

The result

To extract month from the date you need the MONTH function. Like the DAY function, the MONTH function has only one argument, filled with a valid Excel date value.

There is a #VALUE error. The error appearance is the same place as the #VALUE error in DAY function result. The cause of the error is the same; the date value in cell A5 is not a valid Excel date value. This error will still appear in all excel functions related to the date.

The MONTH function result is a number between 1 and 12.

Extract Year from Date in Excel

The formula

=YEAR(A2)

The result

To extract the year from date, Excel provides the YEAR function. There is an argument that must be filled with a valid Excel date value.

The results of the DAY and MONTH functions are a number with a narrow range. Instead, the YEAR function is a wide range of numbers between 1900 and 9999.

For years less than 1900 or more than 9999, it will be considered an invalid excel date value. If used by an Excel function (related to the date function) returns a #VALUE! Error.

The DAY, MONTH and YEAR functions extract day, month and year from a date. To do the opposite, converting day, month and year in number to date value, you need the DATE function.

Related Function

Function used in this article
  • Excel DAY Function
  • Excel MONTH Function
  • Excel YEAR Function
  • Excel DATE Function
Usefull links
  • Microsoft Excel DAY function documentation
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

How to add days, weeks, months, years to date in Excel
How to add DAYS to a date in Excel Excel …

How to Add Days, Weeks, Months and Years to a Date in Excel

How to Convert Time to Hours, Minutes and Seconds in Excel
Excel stores TIME values in decimal numbers, but in day …

How to Convert Time to Hours, Minutes and Seconds in Excel

How to Create a Formula in Excel
How to Create a Simple Formula in Excel To create …

How to Create a Formula in Excel

Get the Original Price from Percentage Increase What was the …

Get the Original Price from Percentage Increase/Decrease

VLOOKUP Multiple Criteria
The Solution for Numeric Result For example, there is data …

VLOOKUP Multiple Criteria – Solution for Numeric or Non-Numeric Result

Tags:DATE Function Day Function Excel Formula Extract Year from Date Excel Formula to Extract Date from Date and Time Extract Date Excel Extract Date from String Excel Extract Day from Date in Excel Extract Month Excel Extract Month from Date in Excel Extract Year from Date in Excel Extract Year in Excel Extracting Month and Year from a Date in Excel How to Extract Date in Excel How to Extract Day from Date in Excel How to Extract Month and Year From Date in Excel How to Extract Month from Date in Excel How to Extract Month in Excel How to Extract the Year from a Date in Excel Month Function 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