Excel: How to Change a Date to Month (3 Easy Ways)
In this article
You can change a date to a month in Excel in three reliable ways: use the MONTH function to return the month number (1–12), use TEXT to return the month name as text, or apply a custom number format to display only the month while keeping the full date underneath. The right choice depends on whether you need the month for calculations, for display, or for sorting and grouping. Nothing needs to be installed first — all three methods work in Excel for Microsoft 365, Excel 2021, 2019, 2016 and Excel for Mac, though menu labels can differ slightly by version and region.
What You'll Need
- Excel for Windows, Mac, or the web (the functions and number formats described here are available in all current versions).
- A worksheet containing dates that Excel actually recognises as dates — not text that merely looks like a date.
- A blank column next to your dates if you want to keep the originals intact (recommended).
Step-by-Step
Method 1: Return the month number with the MONTH function
Use this when you want to sort, filter, or calculate by month (for example, totals per month). The result is a number from 1 to 12.
- Click an empty cell in the same row as your first date — for example, if your first date is in A2, click B2.
- Type
=MONTH(A2)and press Enter. The cell shows the month number (January = 1, December = 12). - Drag the fill handle (the small square at the bottom-right of the cell) down to apply the formula to the rest of your dates.
- If you want a fixed value instead of a formula, copy the results, then use Paste Special > Values in place. This removes the formula but keeps the numbers.
Method 2: Return the month name with the TEXT function
Use this when you want the month spelled out as text, such as "January" or "Jan".
- Click an empty cell next to your first date.
- Type
=TEXT(A2,"mmmm")for the full month name, or=TEXT(A2,"mmm")for the three-letter abbreviation. Press Enter. - Fill the formula down the column.
- Note that the result is text, not a date. It will left-align by default and cannot be used directly in date arithmetic.
Method 3: Display only the month with a custom number format
Use this when you want the cell to look like a month but still behave as the original date — useful for charts and pivot tables.
- Select the cells containing your dates.
- Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open the Format Cells dialog. You can also right-click and choose Format Cells.
- On the Number tab, select Custom at the bottom of the category list.
- In the Type box, type
mmmmfor the full month name ormmmfor the abbreviation, then click OK. - The cell now displays only the month, but the underlying value is still the full date. Formulas and sorting continue to work on the real date.
Method 4: Use a PivotTable to group dates by month
If your goal is a summary by month, a PivotTable does the grouping for you without helper columns.
- Select your data range and choose Insert > PivotTable, then place it on a new or existing worksheet.
- Drag your date field into the Rows area.
- Right-click any date in the pivot row labels and choose Group (in some versions the option appears as Group Field or Group Selection).
- In the grouping dialog, select Months (and Years if your data spans multiple years), then click OK.
Common Mistakes
- Dates stored as text. If MONTH returns #VALUE!, the cell likely contains text, not a real date. Text dates are usually left-aligned; real dates are right-aligned by default. Convert them with Data > Text to Columns, or re-enter them in a recognised date format.
- Expecting TEXT results to sort correctly. Month names as text sort alphabetically (April, August, December…), not chronologically. Keep a month-number column for sorting.
- Formatting instead of converting. A custom format changes only the display. If you need the month as a standalone value for export or lookup, use MONTH or TEXT.
- Wrong cell reference. The MONTH and TEXT formulas point at a specific cell; if you copy them to another sheet or column without adjusting, they return the wrong month.
- Regional date settings. In some regions dates are entered day-first (DD/MM/YYYY). If Excel misreads your dates, check your system's region settings or enter dates in a format Excel recognises unambiguously.
Tips
- Keep the original date column. Helper columns are easy to delete later; recovering overwritten dates is not.
- Combine MONTH with YEAR when your data spans multiple years:
=MONTH(A2)&"-"&YEAR(A2)produces labels like "3-2024". - For a month name plus year, use
=TEXT(A2,"mmmm yyyy"). - Use Alt+= (Windows) to insert a SUM formula quickly under a month-number column if you are totalling by month.
- If you plan to build charts, the custom number format method is usually the cleanest because the axis still reads real dates.
Troubleshooting
- #VALUE! error from MONTH or TEXT. The source cell is text, empty, or contains an invalid date. Check alignment and re-enter the date, or clean it with Data > Text to Columns.
- Formula shows a serial number like 45321. The result cell is formatted as General or Number. Select it, press Ctrl+1, and choose Date or the custom month format.
- Month name appears in the wrong language. TEXT uses your system's regional settings. Change the Windows or macOS region/language setting, or use a lookup table of month names if you need a fixed language.
- PivotTable Group option is greyed out. This usually means the source column contains text or blank cells. Clean the data so every row has a valid date.
- Fill handle does not copy the formula. Check File > Options > Advanced and confirm "Enable fill handle and cell drag-and-drop" is ticked (labels vary by version).
- Dates shifted by a day after import. This is a regional date-format mismatch. Re-import with the correct date order specified in the import wizard.
Frequently Asked Questions
How do I get just the month name from a date in Excel?
Use =TEXT(A2,"mmmm") for the full name or =TEXT(A2,"mmm") for the abbreviation. Alternatively, apply a custom number format of mmmm to keep the cell as a real date.
Why does MONTH return a number instead of a month name?
That is by design — MONTH always returns 1 to 12. Wrap it in TEXT or CHOOSE if you need the name, or use the TEXT function directly.
Can I convert a date to a month without a formula?
Yes. Select the cells, open Format Cells (Ctrl+1), choose Custom, and enter mmmm or mmm. The display changes while the underlying date stays intact.
Will changing the format affect my calculations?
No. A custom number format changes only how the value looks. Sorting, filtering and formulas continue to use the full date.
How do I group dates by month in a PivotTable?
Right-click a date in the pivot row labels, choose Group, tick Months (and Years if needed), then click OK. The pivot then summarises by month.
Why does my month formula show #VALUE!?
The source cell is probably text rather than a real date. Re-enter the date in a recognised format or convert the column with Data > Text to Columns.