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 =MONTH(A2) returns 3
Returns the month of a date as a number from 1 (January) to 12 (December).
Syntax
=MONTH()
All versions of Excel.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =MONTH(A2) returns 3
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.
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 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.
=ROUNDUP(MONTH(A2)/3,0) returns 1 to 4.=MOD(MONTH(A2)-4,12)+1 makes April month 1 and March month 12.=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).=DATE(YEAR(A2),MONTH(A2)+1,1).=MOD(MONTH(A2),3)=0.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".
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.
"2025-03-15". Text that isn't a recognisable date returns #VALUE!.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =MONTH(A2)
Result: 3
March is month 3. Use TEXT(A2,"mmmm") instead if you want the name.
B2 =MONTH(A2) returns 3
Example 2
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 =ROUNDUP(MONTH(A2)/3,0) returns 3
Example 3
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 =MOD(MONTH(A2)-4,12)+1 returns 11
Example 4
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 =SUMPRODUCT((YEAR(A2:A6)=2025)*(MONTH(A2:A6)=3)*B2:B6) returns 650
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.
=IF(A2="","",MONTH(A2)).=MONTH(A2) gives 3, not March. Use TEXT(A2,"mmmm") for the name.#VALUE!. A day-first date such as "25/12/2025" fails in a month-first region.Use `=TEXT(A2,"mmmm")` for the full name, such as March, or `"mmm"` for Mar. MONTH only returns the number.
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.
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.
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.
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.