Excel: Extracting the Month from a Date

In Excel, you may need to manipulate and extract specific components from dates for various purposes, such as data analysis or reporting. One common task is extracting the month from a given date. This tutorial will guide you through several methods to achieve this, catering to different skill levels and preferences.
Method 1: Using the MONTH Function

The MONTH function is a straightforward and widely used method to extract the month from a date. Here’s how you can use it:
- Select a Cell: Choose an empty cell where you want the extracted month to appear.
- Enter the Formula: In the selected cell, type the following formula:
Replace “date” with the cell reference or the actual date you want to extract the month from. For example, if your date is in cell A1, the formula would be=MONTH(date)
=MONTH(A1)
. - Press Enter: After entering the formula, press Enter, and Excel will display the extracted month.
Method 2: Formatting Cells

If you want to display the month directly in the original date cell without extracting it to a new cell, you can use Excel’s formatting feature:
- Select the Date Cells: Choose the cells containing the dates you want to format.
- Apply Custom Formatting: Right-click on the selected cells and choose “Format Cells” or use the keyboard shortcut “Ctrl + 1” (or “Command + 1” on Mac).
- Select Custom: In the “Number” tab of the “Format Cells” dialog box, select “Custom” from the Category list.
- Enter the Format Code: In the “Type” box, enter the following format code:
This code will display the month using its abbreviated name (e.g., Jan, Feb, Mar).mmm
- Click OK: Click “OK” to apply the custom formatting, and Excel will display the months accordingly.
Method 3: Using Text Functions

For more advanced users or specific formatting requirements, you can employ Excel’s text functions to extract and format the month:
- Select a Cell: Choose an empty cell where you want the formatted month to appear.
- Use the TEXT Function: In the selected cell, enter the following formula:
Replace “date” with the cell reference or the actual date you want to format. This formula will display the month using its abbreviated name.=TEXT(date, "mmm")
- Press Enter: After entering the formula, press Enter, and Excel will show the formatted month.
Advanced Formatting Options

Excel offers a wide range of formatting options for dates. Here are a few additional formats you can use with the MONTH function or text functions:
- Full Month Name: Use “mmmm” to display the full month name (e.g., January, February).
- Month Number: Use “m” to display the month as a number (e.g., 1, 2, 3).
- Custom Formats: You can combine various codes to create custom formats. For example, “mmm yyyy” will display the month and year (e.g., Jan 2023).
Handling Date Errors

When working with dates, it’s essential to handle errors gracefully. Excel will return an error if the provided value is not a valid date. Make sure to use proper date formats or wrap your formula with the ISDATE function to check for valid dates before extracting the month.
Conclusion:

In this blog post, we explored three methods to extract and format the month from a date in Excel. Whether you prefer using built-in functions like MONTH, applying custom formatting, or utilizing text functions, Excel provides versatile tools to manipulate date components. By following these steps, you can efficiently extract and present the month data as needed for your analysis or reporting tasks. Remember to explore Excel’s extensive formatting options to tailor the presentation of your data to your specific requirements.