
Excel users often need to extract specific components from a date, such as the month, for better data analysis and reporting. Whether you’re working with sales data, attendance records, or financial reports, knowing how to extract month from date in Excel can help you categorize and filter data efficiently.
This guide will walk you through multiple methods to extract the month from a date using formulas, functions, and formatting.
Why Extract Month from Date in Excel?
Extracting the month from a date in Excel is useful in many scenarios, such as:
- Sorting and Filtering Data – Organize records by month for trend analysis.
- Financial Reporting – Track monthly revenues, expenses, or profits.
- Attendance or Log Data – Identify patterns in employee presence or transactions.
- Custom Date Formatting – Display only the month without affecting the original date.
Now, let’s explore the different ways to extract month from date in Excel efficiently.
Method 1: Using the MONTH Function
The simplest way to extract the month from a date is by using the MONTH function. This function returns a numerical value (1 for January, 2 for February, etc.).
Formula:
=MONTH(A2)
Steps:
- Enter the Date – Ensure your date is in a valid Excel format (e.g., 01/15/2024).
- Apply the Formula – In a new cell, type =MONTH(A2), where A2 contains the date.
- Press Enter – The result will be a number corresponding to the month (e.g., “1” for January).
- Drag the Fill Handle – Copy the formula to other rows if needed.

This is the best method for extracting the numeric month for further calculations or analysis.
Method 2: Extracting the Month Name Using TEXT Function
If you want the full month name (e.g., “January”) or abbreviated month (e.g., “Jan”) instead of a number, use the TEXT function.
Formula for Full Month Name:
=TEXT(A2, “MMMM”)
Formula for Abbreviated Month:
=TEXT(A2, “MMM”)
Steps:
- Select a Cell – Choose a cell where you want the extracted month to appear.
- Type the Formula – Use =TEXT(A2, “MMMM”) for the full month or =TEXT(A2, “MMM”) for an abbreviation.
- Press Enter – The result will show the corresponding month (e.g., “January” or “Jan”).
- Copy Down if Needed – Drag the formula down for multiple rows.

This is the best method for displaying month names in reports, dashboards, or summaries.
Method 3: Extracting the Month Using Format Cells (Without Changing the Date)
If you only need to display the month while keeping the full date in the cell, you can change the cell formatting instead of using a formula.
Steps:
- Select the Date Cells – Highlight the cells containing dates.
- Open Format Cells – Press Ctrl + 1 (or right-click > Format Cells).
- Choose “Custom” Format – In the Number tab, select Custom.
- Enter a Format Code:
- MMMM → Displays “January”
- MMM → Displays “Jan”
- MM → Displays “01”
- Click OK – The dates will now appear as months, but the original data remains unchanged.

This is the best method for displaying months without altering the actual date values.
Method 4: Using Power Query to Extract Month from Date
If you’re working with large datasets and need a structured approach, Power Query offers a flexible way to extract months from dates.
Steps:
- Select Your Data – Click on any cell within your data range.
- Go to Data Tab – Click on Get & Transform Data > From Table/Range.
- Convert Column to Date Type – Ensure your column is recognized as a Date.
- Add a Custom Column – Go to Add Column > Date > Month > Name of Month.
- Close & Load – The extracted month will appear as a new column.

This is the best method for automating month extraction in large data tables.
Method 5: Extract Month Using VBA (For Advanced Users)
If you need an automated solution, VBA (Visual Basic for Applications) can be used to extract months from a column of dates.
VBA Code:
Sub ExtractMonth()
Dim cell As Range
For Each cell In Selection
cell.Offset(0, 1).Value = Month(cell.Value)
Next cell
End Sub
Steps:
- Press Alt + F11 – Open the VBA Editor.
- Insert a Module – Click Insert > Module.
- Copy & Paste the Code – Insert the code above.
- Run the Macro – Select the date column and run ExtractMonth().
This is the best method for automating month extraction across multiple sheets or workbooks.
Key Considerations When Extracting Month from Date
- Date Format Must Be Correct – Ensure your dates are stored as valid Excel dates, not text.
- Numeric vs. Text Month Output – Choose a method that suits your reporting needs.
- Use Wrap Text for Month Names – If month names are too long, enable Wrap Text for better visibility.
- Power Query for Large Data – If working with thousands of records, use Power Query for efficiency.
VBA for Automation – Ideal for users who frequently need month extraction in dynamic reports.
Conclusion
Now that you know how to extract month from date in Excel, you can easily structure your data for better insights. Whether you prefer using the MONTH function, TEXT function, cell formatting, or even Power Query, each method offers flexibility based on your needs.
Try these techniques in your Excel projects and simplify your data analysis today!
