The MONTH function
MONTH gives the month of a date as a number: 1 for January up to 12 for December.
Use it to group or filter by month, to work out a quarter, or to build a new date with DATE. For the month's name, use TEXT instead.
=MONTH(serial_number)
Arguments
- serial_number
- The date (or cell holding a date) to take the month from.
Try it
=MONTH(A2) in B2. March is the third month, so MONTH returns 3.
B2
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Month | ||
| 2 | 14 Mar 2025 | 3 | ||
| 3 | 1 Aug 2025 | |||
| 4 | 24 Dec 2024 | |||
| 5 | ||||
| 6 |
Edit the formula in B2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =TEXT(A3,"mmmm") | August | For the month's name rather than its number, use TEXT. |
| =ROUNDUP(MONTH(A3)/3,0) | 3 | The calendar quarter: August is month 8, and 8 ÷ 3 rounded up is 3. |
| =MONTH(A4) | 12 | December is month 12. |
| =SUMPRODUCT(--(MONTH(A2:A4)>6)) | 2 | Count the dates in the second half of the year: August and December. |
Tips
- UK financial years start in April. Shift the month for a fiscal quarter:
=INT(MOD(MONTH(A2)-4,12)/3)+1gives 1 for April to June and 4 for January to March. - To match month and year together, compare
TEXT(A2,"yyyy-mm")values. - Count dates in one month with SUMPRODUCT:
=SUMPRODUCT(--(MONTH(A2:A50)=3)).
Common mistakes
- MONTH shows 3 Jan 1900 instead of 3.The result cell has a date format. Change it to General or Number.
- March 2024 and March 2025 are counted together.MONTH ignores the year. Check YEAR as well, or compare
TEXT(A2,"yyyy-mm"). - MONTH returns the wrong month for imported dates.Text dates may be read in US order (month first). Rebuild them with DATE so the parts are unambiguous.
Practise MONTH with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.