Skip to content

MONTH

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

Syntax

=MONTH()

Date and time

All versions of Excel.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
1
Invoice date
Month number
2
15-Mar-2025
3
3

B2 =MONTH(A2) returns 3

How MONTH works

MONTH reads a date and returns the month as a number from 1 to 12: =MONTH(A2) with 15 March 2025 in A2 returns 3. It is the middle member of the YEAR, MONTH and DAY trio, and it is the usual starting point for monthly summaries, quarters and fiscal calendars.

The one argument

serial_number is the date. Point at a cell, or nest another function such as =MONTH(TODAY()). ISO text like "2025-03-15" is accepted on any machine; other text formats depend on regional settings. An empty cell counts as 0, which Excel reads as the date 0 January 1900, so MONTH of a blank returns 1, not an error. Guard with =IF(A2="","",MONTH(A2)).

Month numbers and month names

MONTH returns a number. For a name, use TEXT on the date: =TEXT(A2,"mmmm") returns March and =TEXT(A2,"mmm") returns Mar. Use the number when you want to calculate with it and the name when you want to read it. Sorting by the name sorts alphabetically, so keep a numeric helper column for ordering.

Common patterns

  • Calendar quarter: =ROUNDUP(MONTH(A2)/3,0) returns 1 to 4.
  • Fiscal month, year starting in April: =MOD(MONTH(A2)-4,12)+1 makes April month 1 and March month 12.
  • Month-to-month comparisons: =SUMPRODUCT((MONTH(A2:A200)=3)*C2:C200) totals one month across all years, which is rarely what you want. Add a year test as well: *(YEAR(A2:A200)=2025).
  • First day of next month: =DATE(YEAR(A2),MONTH(A2)+1,1).
  • Is it a quarter-end month: =MOD(MONTH(A2),3)=0.

MONTH and the year

MONTH ignores the year. March 2024 and March 2025 both return 3. When you total or count by month, include YEAR, or group on a combined key such as =YEAR(A2)*100+MONTH(A2), which turns March 2025 into 202503 and sorts correctly. Alternatively, EOMONTH gives a single month-end date per row, which is easy to group on and format as "mmm yyyy".

Month arithmetic

To step forward by months, add to the month argument inside DATE, or use EDATE and EOMONTH. Adding 30 days to a date doesn't move it to the same day next month, because months differ in length.

Arguments

serial_number
The date to read: a cell holding a date, a date built with DATE, or text Excel can read as a date, such as "2025-03-15". Text that isn't a recognisable date returns #VALUE!.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Read the month from a date

B2 =MONTH(A2)

Result: 3

March is month 3. Use TEXT(A2,"mmmm") instead if you want the name.

B2
A
B
C
1
Invoice date
Month number
2
15-Mar-2025
3
3

B2 =MONTH(A2) returns 3

Example 2

Calendar quarter from a date

B2 =ROUNDUP(MONTH(A2)/3,0)

Result: 3

August is month 8. Dividing by 3 gives 2.67, and ROUNDUP takes it up to 3, so the sale is in Q3.

B2
A
B
C
1
Sale date
Quarter
2
19-Aug-2025
3
3

B2 =ROUNDUP(MONTH(A2)/3,0) returns 3

Example 3

Fiscal month for a year that starts in April

B2 =MOD(MONTH(A2)-4,12)+1

Result: 11

February is month 2. Taking away 4 gives -2, MOD wraps that to 10, and adding 1 gives fiscal month 11. April is 1 and March is 12.

B2
A
B
C
1
Posting date
Fiscal month
2
14-Feb-2025
11
3

B2 =MOD(MONTH(A2)-4,12)+1 returns 11

Example 4

Total one month of one year

D2 =SUMPRODUCT((YEAR(A2:A6)=2025)*(MONTH(A2:A6)=3)*B2:B6)

Result: 650

The 2024 order is excluded by the YEAR test and the April order by the MONTH test. Only 220, 340 and 90 remain, and they add to 650.

D2
A
B
C
D
1
Date
Amount
March 2025 total
2
10-Mar-2024
500
650
3
04-Mar-2025
220
4
27-Mar-2025
340
5
02-Apr-2025
190
6
31-Mar-2025
90
7

D2 =SUMPRODUCT((YEAR(A2:A6)=2025)*(MONTH(A2:A6)=3)*B2:B6) returns 650

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In B2, return the month number of the sale date in A2. Fill it down to B4.

Answer in B2, then it fills down to B4.

B2
A
B
C
D
E
1
Sale date
Month
Quarter
2
06-Feb-2025
3
19-Jul-2025
4
01-Dec-2025
5

Common mistakes

  • MONTH ignores the year, so March 2024 and March 2025 both return 3. When you total by month, test the year as well.
  • A blank cell returns 1, not an error, because an empty cell is read as date 0, which is in January 1900. Guard it: =IF(A2="","",MONTH(A2)).
  • MONTH returns a number, not a name. =MONTH(A2) gives 3, not March. Use TEXT(A2,"mmmm") for the name.
  • Text that looks like a date but isn't recognised returns #VALUE!. A day-first date such as "25/12/2025" fails in a month-first region.

Questions people ask

How do I get the month name from a date?

Use `=TEXT(A2,"mmmm")` for the full name, such as March, or `"mmm"` for Mar. MONTH only returns the number.

How do I get the quarter from a date?

Use `=ROUNDUP(MONTH(A2)/3,0)` for a calendar quarter from 1 to 4. For a fiscal year that doesn't start in January, shift the month first, as in `=ROUNDUP((MOD(MONTH(A2)-4,12)+1)/3,0)` for a year starting in April.

How do I sum by month?

Add a helper column with `=EOMONTH(A2,0)` or `=YEAR(A2)*100+MONTH(A2)`, then use SUMIFS on that column. SUMIFS with a start and end date also works and needs no helper.

Why does MONTH return 1 for an empty cell?

Excel treats an empty cell as zero, and zero is read as 0 January 1900, which is in month 1. Check for blanks first with an IF.

Learn MONTH in a real sheet.

MONTH is taught in Dates and financial modelling, lesson 2: Building and splitting dates. Each lesson is a short, graded exercise like the one above.