• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microsoft Excel Tips and Tricks - Computergaga

  • Home
  • Excel Online Courses
  • Excel Functions List
  • Free Downloads
  • Blog
  • Tutorials
  • About

The DAY, MONTH and YEAR Functions

DAY Function

The Excel DAY function returns the day corresponding to a date represented by a number between 1 and 31.

The syntax for the DAY function is:

=DAY(serial_number)
ArgumentPurpose
serial_numberThe date that you want to return the day from

MONTH Function

The Excel MONTH function returns the month corresponding to a date represented by a number between 1 and 12

The syntax for the MONTH function is:

=MONTH(serial_number)
ArgumentPurpose
serial_numberThe date that you want to return the month from

YEAR Function

The Excel YEAR function returns the year corresponding to a date represented by a number in the range 1900 to 9999.

The syntax for the YEAR function is:

=YEAR(serial_number)
ArgumentPurpose
serial_numberThe date that you want to return the year from

The examples below show the DAY, MONTH and YEAR functions being used to extract the relevant information from a cell.

Extract elements of a date with the DAY, MONTH and YEAR functions
FunctionResult
=DAY(A2)10
=MONTH(A2)4
=YEAR(A2)2010

Primary Sidebar

Recent Posts

  • Excel SWITCH Function – Nested IF Function Alternative
  • Sum Formulas Only in Excel
  • How to Calculate Age in Excel
  • Custom Sort in Excel
  • Case Sensitive Lookup with XLOOKUP in Excel
Advanced Excel Success book

Footer

Contact

[email protected]

LinkedIn Twitter YouTube

Useful Links

  • Home
  • Excel Online Courses
  • Tutorials
  • Sitemap
  • Privacy Policy
  • Jobs by Jooble

Course Topics

  • Blog
  • Charts
  • Courses
  • Dashboards
  • Downloads
  • Excel Tips
  • Formulas
  • Mail Merge
  • Office
  • PivotTables
  • Power BI
  • Power Pivot
  • Power Query
  • VBA

Join Our Mailing List

© Copyright 2009 Computergaga · All Rights Reserved ·