Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Convert mm/dd/yyyy to Month and Year in Excel

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To convert a date stored as mm/dd/yyyy into a month and year, use TEXT with the format code "mmmm yyyy" (or "mmm yyyy" for a short month). If your date sits in cell A2, enter =TEXT(A2,"mmmm yyyy") in B2 and fill down. That returns a label like "March 2025" that is written as text. If you would rather keep the value as a real date and only change how it looks, select the cells and apply a custom number format of mmmm yyyy from Format Cells > Number > Custom instead. The formulas below work the same in Excel for Microsoft 365, Excel 2021, 2019 and 2016, on Windows and Mac; menu names can differ slightly by version and region.

What You'll Need

  • Excel 2016 or later on Windows or Mac, or Excel for Microsoft 365 or Excel for the web.
  • A column of dates in mm/dd/yyyy order, in cells that Excel recognises as real dates (they sit slightly right of centre in a cell by default).
  • An empty column to the right of your data for the output.
  • One backup copy of the sheet before you overwrite anything, since formatting changes are easy to undo and formula results are easy to paste over by mistake.

Step-by-Step

  1. Check that your dates are real dates, not text. Click one date cell and look at the status bar at the bottom of the window or press Ctrl+1 (Cmd+1 on Mac) to open Format Cells. In the Number tab a date cell will be grouped under Date or shown with a date format code, while text dates show as Text. If the dates are left-aligned in their cells, they are almost certainly text and need converting first (see Troubleshooting).
  2. Decide whether you want a label or a live date. A label is text such as "March 2025" that is easy to read and to sort alphabetically, but it can no longer be used in date arithmetic. A live date keeps the full day behind the scenes and still subtracts, adds and sorts by month correctly. Pick the label approach for reports and headings, and the formatting approach for pivot tables or charts.
  3. Write the label formula. In B2, next to your first date, type =TEXT(A2,"mmmm yyyy"). Press Enter. The cell shows the full month name and the four-digit year, for example "January 2026". Use "mmm yyyy" for "Jan 2026" or "mm/yyyy" for a numeric "01/2026".
  4. Fill the formula down. Double-click the small square at the bottom-right corner of B2, or drag it down to the last row of data. Excel adjusts the reference for every row automatically.
  5. Convert the labels to fixed values if you plan to sort or export. Select the whole formula column, press Ctrl+C, then right-click the same selection and choose Paste Special > Values (Paste Options: Values on Mac). This replaces the formulas with plain text, which protects you from broken links if the original dates are later moved or deleted.
  6. Alternatively, keep the date and change only its display. Select the date column, press Ctrl+1 (Cmd+1 on Mac), choose Custom in the category list, and type mmmm yyyy in the Type box. Click OK. The values remain full dates; only the appearance changes.
  7. Extract the parts separately if you need them. Use =MONTH(A2) for the month number 1 to 12, =YEAR(A2) for the year, and =TEXT(A2,"mmmm") for the month name alone. Combine them with =TEXT(A2,"mmmm")&" "&YEAR(A2) if you want a label built from those functions.
  8. Make the result language-correct. The month name follows your system's regional format, so a Windows or Mac set to another language may return a foreign month name. To force English regardless of the machine, use =TEXT(A2,"[$-en-US]mmmm yyyy").
  9. Format the output column to the width you need. Text labels are not dates, so Excel treats them as left-aligned text. Widen the column, or set the alignment to centre, so the report reads cleanly alongside the original column.

Common Mistakes

  • Using "mm" instead of "mmmm". In a format code, lowercase mm means the two-digit month number and uppercase MM means minutes. For a month name you need mmm or mmmm, never the two-letter mm.
  • Assuming the label is still a date. =TEXT(A2,"mmmm yyyy") returns text. Subtracting two such cells, or grouping pivot table dates by month, will fail on it. Use the custom number format method instead when dates must stay numeric.
  • Typing the format without quotes. In the TEXT function the format must be a quoted string. =TEXT(A2,mmmm yyyy) returns a #NAME? error.
  • Pasting values over the source dates. Paste Special lands in the selected range. Select the destination column first, then paste, or the original dates are replaced with labels and the days are gone.
  • Ignoring regional date order. A sheet created for a US audience expects mm/dd/yyyy; a UK or European version may read 03/04/2026 as 3 April. If dates were entered by different people, check a sample of them before trusting the output.
  • Forgetting the year when only months matter. Grouping by month name alone merges the same month across different years. Always include the year in the label unless you explicitly want an annual cycle view.

Tips

  • Build labels straight into a PivotTable: right-click any date field, choose Group, and select Months and Years. Excel creates the grouping itself with no formulas.
  • For a chart axis that shows month and year, use the custom format rather than the TEXT function so the axis still plots in chronological order.
  • Keep a helper column of the full date next to any label column. It costs nothing and lets you re-sort, filter by range or recalculate later.
  • Use =TEXT(A2,"mmm-yy") for compact table headers where space is tight.
  • If you need the month name in a formula result rather than a cell value, wrap the TEXT function inside it, for example ="Report for "&TEXT(A2,"mmmm yyyy"), to build a title automatically.
  • Save the workbook as .xlsx, not .csv, if you want the formatting and formulas to survive. A CSV export stores the displayed text only and drops custom formats.

Troubleshooting

The formula returns a serial number like 45321. The source cell is text, so Excel is feeding a string into TEXT. Convert it first: select the column, open Data > Text to Columns, click Next twice, choose Date and set the order to MDY, then finish. Alternatively use =TEXT(DATEVALUE(A2),"mmmm yyyy") when the text is a recognisable date.

Every result shows January 1900 or a wrong year. The cell is being read as a number (a day count) rather than a date, or the original value was typed with an impossible day such as 02/30/2026. Correct the source entry.

The month name comes out in the wrong language. Add the locale prefix as in step 8, or change the regional format in Windows Settings > Time & Language > Language & region, or in macOS System Settings > General > Language & Region, then reopen the workbook.

#VALUE! appears. The referenced cell is empty or holds text that Excel cannot parse. Test with =ISNUMBER(A2); a FALSE result confirms the value is not a date.

Filling down copies the same month everywhere. The reference was entered as $A$2 with dollar signs, which locks it. Remove the dollar signs so the row number can move.

If that did not work, copy one date into a brand-new blank sheet and run the formula there. If it works in the fresh sheet, the problem sits in the original data or its formatting rather than in the formula.

Frequently Asked Questions

Can I get just the month name without the year?

Yes. Use =TEXT(A2,"mmmm") and select the cells, then sort manually by month if you need calendar order, because text months sort alphabetically.

How do I convert month and year back into a date?

Use =DATEVALUE("1 "&A2) where A2 holds a label such as "March 2025", or build it directly with =DATE(YEAR(A2),MONTH(A2),1) if the original date still exists.

Why does my column show ######?

The column is too narrow for the formatted date. Double-click the right edge of the column header to auto-fit it.

Does this work in Google Sheets?

Yes, the TEXT function and the "mmmm yyyy" format code behave the same way in Google Sheets, and the Format > Number > Custom date and time menu does the same job as Format Cells in Excel.

Can I remove the day from a date permanently?

Excel has no setting that deletes the day from a stored date; a date is always stored as a serial number. You can only change how it displays, or generate a text label with TEXT as shown above.