Date & time function

MONTH function

Returns the month number (1 for January to 12 for December) from a date.

Available in All versions of Excel (Windows and Mac), Excel for Microsoft 365, Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

MONTH(serial_number)
ArgumentWhat it means
serial_numberRequiredA date, a formula that returns a date, or a date serial number.

Returns: A whole number from 1 to 12.

How MONTH works

MONTH returns the month of a date as a number from 1 to 12. It is the building block for monthly reporting: counting orders in March, working out the quarter or fiscal period of a transaction, or creating a helper column you can pivot or filter on.

Because the result is a number, you can do arithmetic with it — ROUNDUP(MONTH(A2)/3,0) gives the calendar quarter — or feed it back into DATE. If you want the month name ("March" or "Mar"), use TEXT(A2,"mmmm") or simply apply a custom number format to the date itself.

Examples

1Month number of an order

B2fx=MONTH(A2)
AB
1Order dateMonth
22026-03-153

Result: 3

March is the third month, so MONTH returns 3.

2Calendar quarter of a sale

B2fx="Q"&ROUNDUP(MONTH(A2)/3,0)
AB
1Sale dateQuarter
22026-08-19Q3

Result: Q3

August is month 8; 8 ÷ 3 = 2.67, rounded up to 3, so the sale belongs to Q3.

3Count orders placed in March

D2fx=SUMPRODUCT(--(MONTH(A2:A6)=3))
ABCD
1Order dateAmount
22026-03-023103
32026-02-27125
42026-03-18480
52026-04-0195
62026-03-30260

Result: 3

MONTH(A2:A6) returns {3;2;3;4;3}. Comparing with 3 gives TRUE/FALSE, -- turns them into 1/0, and SUMPRODUCT adds them up: three March orders.

4Fiscal year starting in April

B2fx="FY"&(YEAR(A2)+(MONTH(A2)>=4))
AB
1Invoice dateFiscal year
22026-11-20FY2027

Result: FY2027

For a year running April–March and named after the year it ends, any month from April onward belongs to next year's label. MONTH is 11, so TRUE (1) is added to 2026.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 18 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The argument is text that cannot be read as a date.Convert with DATEVALUE.
Returns 1 for empty cellsA blank cell counts as serial 0, which Excel displays as 0 January 1900 (month 1).Test for blanks first: IF(A2="","",MONTH(A2)).

Tips

  • When counting by month across several years, also test the year — or compare against month start/end dates with SUMIFS and EOMONTH.
  • TEXT(A2,"mmm") returns "Mar"; the language follows your Office settings.

Questions

How do I get the month name from a date?

Use =TEXT(A2,"mmmm") for "March" or "mmm" for "Mar". MONTH itself always returns a number.

Why does MONTH return 1 for a blank cell?

Excel treats a blank cell as date serial 0 ("0 January 1900"), so its month is 1. Check for blanks first.

Google Sheets

MONTH also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

MONTH in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechMĚSÍC
DanishMÅNED
DutchMAAND
FinnishKUUKAUSI
FrenchMOIS
GermanMONAT
HungarianHÓNAP
ItalianMESE
Norwegian (Bokmål)MÅNED
PolishMIESIĄC
Portuguese (Brazil)MÊS
Portuguese (Portugal)MÊS
RussianМЕСЯЦ
SpanishMES
SwedishMÅNAD
TurkishAY

Recipes that use MONTH