formulastreak

Dates function

MONTH function in Google Sheets and Excel

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

Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet

Syntax

MONTH(serial_number)

Arguments in [brackets] are optional. Google Sheets writes it MONTH(date).

Example

=MONTH(D2) reads: Read the date in D2 (the task's due date) and return its month as a number.

Website relaunch plan · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = 3
ABCDEFGH
1TaskOwnerStartDueHoursDue monthHolidays
2Kickoff workshopMara2 Mar 20264 Mar 2026633 Apr 2026
3Content auditJonas5 Mar 202620 Mar 2026246 Apr 2026
4WireframesPriya16 Mar 20262 Apr 2026401 May 2026
5Visual designElif30 Mar 202617 Apr 202656
6CopywritingTomás1 Apr 202624 Apr 202632
7BuildKenji13 Apr 202615 May 2026120
8TestingSofia11 May 202622 May 202630
9LaunchLeo26 May 202627 May 20268

F2 shows 3: the kickoff workshop is due in March.

How the spreadsheet calculates it

Gives the month (1 to 12) of the date in D2.

  1. 1. MONTH: Gives the month (1 to 12) of the date in D2.
    • date = `D2`: a cell holding a date

More MONTH examples

  • =MONTH(D2)The due date's month, 3 for March.
  • =ROUNDUP(MONTH(D2)/3,0)The quarter the date falls in, 1 to 4.
  • =SUMPRODUCT((MONTH(D2:D9)=4)*E2:E9)The hours of every task due in April.
  • =IF(MONTH(D2)=MONTH(TODAY()),"This month","")A flag on tasks due in the current month (any year).

Paste any of these into the formula explainer to see it step by step.

Tips

  • Pair it with YEAR whenever the data spans more than one year.
  • For quarters, divide and round up: ROUNDUP(MONTH(D2)/3,0) gives 1 to 4.
  • Format the result as a number, not a date.

What MONTH is used for

Grouping sales, hours or invoices by month, checking whether a date falls in a given quarter, building fiscal-year labels, and pulling the month into a helper column for a pivot table or a chart.

Arguments

ArgumentRequiredWhat it is
serial_numberYesThe date to read: a cell holding a date, a DATE formula or another formula that returns a date.Watch out: Text that only looks like a date may give #VALUE! or a month read in the wrong order.

Common mistakes

  • Expecting a name like March: MONTH gives a number. Use TEXT with "mmmm" for the name.

  • Counting a month across years: MONTH gives 3 for March of any year, so totals by month mix 2025 and 2026 unless you check the year too with YEAR.

  • Getting a date such as 3 Jan 1900 instead of 3: the result cell kept a date format. Format it as a plain number.

In Google Sheets

Google Sheets has MONTH with one argument, a date, and returns the same 1 to 12 numbers. Its siblings YEAR and DAY exist in both apps too.

Errors you may see with MONTH

  • #VALUE!: The argument is text the app can't read as a date, like "next week".
  • #####: Not an error in MONTH itself: a result cell left in a narrow date format can show hashes. Format it as a number.

Questions

How do I get the month name instead of the number?

Use TEXT on the date itself: TEXT(D2,"mmmm") gives March and TEXT(D2,"mmm") gives Mar. MONTH only ever returns the number.

How do I count or sum by month?

Compare MONTH of the whole column inside SUMPRODUCT: SUMPRODUCT((MONTH(D2:D9)=4)*E2:E9) adds the hours of tasks due in April. Or use SUMIFS with the month's first and last day as limits.

What do YEAR and DAY do?

The same job for the other parts of a date: YEAR(D2) returns 2026 and DAY(D2) the day of the month. With DATE you can take a date apart and put it back together changed.

Sources

Official documentation the facts on this page were checked against.

Practise MONTH on a live sheet

Lesson 26, Dates (Unit 6, Text and dates), has 6 graded exercises, checked instantly, with steps and hints when you're stuck. Pro