Finance

Charts

Statistics

Macros

Search

How to use the MONTH function in Excel

Its extracts the month number (1-12) from a date, where:

  • 1 = January
  • 12 = December

Syntax

MONTH(serial_number)

Arguments

  • serial_number (required):
    • A valid date
    • Can be:
      • date string (e.g., « 11/14/1959 »)
      • serial number (Excel date format)
      • cell reference containing a date
      • The result of another function (e.g., TODAY())

Background

Part of Excel’s date function family (with YEAR() and DAY()). Used to:

  • Extract months for grouping/sorting data
  • Support monthly reporting
  • Enable date-based calculations

Examples

 Assume that you want to enable the Excel AutoFilter for the months and need to calculate the month values from a date column by using an auxiliary column. To do this, use the formula

=MONTH(date_value)

Here are more examples:

Formula Returns Explanation
=MONTH(TODAY()) 9 (if current month is September) Current month number
=MONTH(« 11/14/1959 ») 11 November extraction
=MONTH(« 01/01/1900 ») 1 January extraction
=MONTH(« 12/31/1899 ») #VALUE! Invalid date (pre-1900 in Windows)
=MONTH(« 12/31/9999 ») #VALUE! Invalid
=MONTH(« 01/01/10000 ») #VALUE! Invalid date (post-9999)

Notes

  • Returns #VALUE! for:
    • Text-formatted dates
    • Dates outside Excel’s valid range (1/1/1900–12/31/9999 for Windows)
  • Combine with YEAR() and DAY() for complete date analysis
0 0 votes
Évaluation de l'article
S’abonner
Notification pour
guest
0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
Online comments
Show all comments
Facebook
Twitter
LinkedIn
WhatsApp
Email
Print
0
We’d love to hear your thoughts — please leave a commentx