MONTH Function in Google Sheets

Last Updated : 30 Sep, 2025

The MONTH function in Google Sheets is a simple yet essential tool for extracting the month from a given date. Whether you’re handling financial data, managing project timelines, or tracking time-specific trends, this function helps you analyze and organize information based on months. Learning how to get the month from a date in Google Sheets can significantly enhance your ability to work with time-sensitive datasets effectively.

1. MONTH Function in Google Sheets

The MONTH function in Google Sheets extracts the month from a given date and returns it as a numeric value (1 for January, 2 for February, and so on). This function is useful for organizing, analyzing, or filtering date-related data in spreadsheets.

How it Works

The function reads a date input and outputs the corresponding month as a number (1 to 12). It simplifies data analysis by isolating the month from full dates.

Google Sheet MONTH Function Syntax:

The syntax of the MONTH function in Google Sheets:

=MONTH(date)

where,

  • date: The date from which you want to extract the month. It can be a valid date, a reference to a cell containing a date, or a date generated by another formula.

The MONTH function generates monthly reports, groups data by month, and automates month-based calculations.

2. How to use the MONTH formula in Google Sheets

The MONTH function in Google Sheets is a simple tool that helps you convert a date into its corresponding month as a number. Follow these steps to use the formula:

Step 1: Prepare Your Data

Ensure you have a column of dates in your sheet. For example, enter a range of dates in cells A2:A6.

Step 2: Select the Cell for the Result

Click on the cell where you want the numeric month value to appear, such as B2.

MONTH Function in Google Sheets
Select the Cell

Step 3: Enter the MONTH Formula

In the selected cell, type the formula:

=MONTH(A2)
  • A2: Refers to the cell containing the date from which you want to extract the month.
MONTH Function in Google Sheets
Enter the Formula

Step 4: Press Enter

Press Enter to apply the formula and see the numeric month corresponding to the date in the selected cell.

MONTH Function in Google Sheets
Press Enter to See Result

3. Troubleshooting Common Errors

When using the MONTH function to analyze months in spreadsheets, you may encounter errors. Here’s how to fix them:

1. Handling Invalid Dates

Error: The formula doesn’t work because the date format is incorrect or the value is not a valid date.

  • Cause: Cells contain text instead of recognized dates, or the date format is inconsistent.
  • Fix: Ensure all date entries are valid by using the correct format (e.g., MM/DD/YYYY). Use the DATE function, like =DATE(2023, 1, 1), to standardize dates.

2. Fixing #VALUE! Errors

Error: The formula returns #VALUE! when calculating with dates.

  • Cause: The formula references non-date values or empty cells.
  • Fix: Check that all referenced cells contain valid dates. Replace blank cells with default dates or use a fallback formula like =IF(A1="", TODAY(), A1).

3. Using IFERROR for Error-Free Calculations

Error: Errors disrupt your workflow and create confusion in results.

  • Fix: Use the IFERROR function to return a default value when an error occurs. This replaces errors with a helpful message or value, ensuring cleaner calculations.

Example:
=IFERROR(DATEDIF(A1, B1, "D"), "Invalid Data")

This replaces errors with a helpful message or value, ensuring cleaner calculations.

Also Read:

Comment