Category: FUNCTION | Updated: 2026-11-22
How to Use the MONTH Function in Google Sheets | Extract Only the Month from a Date
How to Use the MONTH Function in Google Sheets
The MONTH function extracts only the month (an integer from 1 to 12) from a date value. It is very useful for adding a month column to daily sales or expense logs for monthly summaries, or for automatically classifying dates into quarters (Q1–Q4).
Syntax
=MONTH(date)
- date: The date value or cell containing the date from which to extract the month.
Examples
Here are examples of extracting the month from dates in Column A and using the number in conditional logic.
| Row | A (Date) | B (Formula) | Result | Description |
|---|---|---|---|---|
| 1 | 2026/11/22 | =MONTH(A1) |
11 | Extracts 11 from the date |
| 2 | 2026/04/05 | =MONTH(A2) |
4 | Single-digit months return as 4 |
| 3 | 2026/08/10 | =IF(MONTH(A3)<=6, "H1", "H2") |
H2 | Classifies first half (H1) vs. second half (H2) of the year |
| 4 | 2026/11/22 | =ROUNDUP(MONTH(A4)/3, 0)&"Q" |
4Q | Divides month by 3 and rounds up to get the quarter |
Common Errors and Tips
- Entering a date directly in the formula
- Writing
=MONTH(2026/11/22)is evaluated as division and returns an unintended number (1). Enclose literal dates in double quotation marks like=MONTH("2026/11/22").
- Writing
- When
#VALUE!errors occur- If the referenced cell contains text that cannot be parsed as a date (such as
"Next Month"or"2026/13/01"), a#VALUE!error occurs.
- If the referenced cell contains text that cannot be parsed as a date (such as
- Referencing a blank cell returns
12- Referencing an empty cell with
MONTHreturns12, the month of Google Sheets’ base date (December 30, 1899). For tables with empty rows, wrap it as=IF(A1="", "", MONTH(A1)).
- Referencing an empty cell with
Frequently Asked Questions
Q. Can MONTH display two-digit zero-padded months like "01" or "02"?
A. MONTH alone returns single-digit numbers like 1 or 2. To display two digits, use "=TEXT(A1, "mm")" or set the cell's number format to "00".
Q. How do I display the month with a label like "Month 1" or "1月"?
A. Use "=TEXT(A1, "mmm")" for month names, or concatenate text onto MONTH such as "=MONTH(A1)&"月"".