Smart Systems for Home

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

Excel Formula Returns Month Name: How-To Guide

· 6 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 make an Excel formula return a month name instead of a month number, wrap your date in the TEXT function: =TEXT(A2,"mmmm") returns the full name such as January, and =TEXT(A2,"mmm") returns the short name such as Jan. That single formula handles almost every case, because it reads the month directly from a real date value and formats it as text. If your data is already a month number (1 to 12) rather than a full date, use =TEXT(DATE(2026,A2,1),"mmmm") instead. The rest of this guide covers the working details, the cases where these formulas behave oddly, and how to fix them.

What You'll Need

  • Excel (Microsoft 365, Excel 2019 or later; the TEXT function exists in all modern desktop and web versions, and the function name is translated in localized editions).
  • Dates stored as real Excel dates, not typed text. You can check by selecting a cell: if the value aligns right by default, it is probably a date; if it aligns left, it is likely text.
  • A spare column for the formula output, so the original dates stay intact.

Step-by-Step

  1. Confirm your dates are real dates. Click a date cell and look at the formula bar. A real date shows something like 01/15/2026 or 2026-01-15 and the cell may display a friendlier format. If the formula bar shows the text typed exactly as you see it, with no date formatting, Excel is treating it as text and the TEXT function will not work correctly. Convert it first (see Common Mistakes).
  2. Pick an empty cell on the same row where you want the month name to appear, for example B2 next to a date in A2.
  3. Type the full-name formula. Enter =TEXT(A2,"mmmm") and press Enter. The cell displays the complete month name, such as February. The format code is case-insensitive, so "MMMM" works the same way.
  4. Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down the column, or double-click it to fill to the end of the adjacent data. Each row now shows the month belonging to its date.
  5. Use the short name when space is tight. Replace the format code with "mmm", as in =TEXT(A2,"mmm"), to get Feb instead of February. This is useful in narrow columns, chart labels, and headers.
  6. Format month numbers that are already in a cell. If A2 contains just the number 1 to 12, use =TEXT(DATE(2026,A2,1),"mmmm"). The DATE function builds a valid first-of-month date from the number, and TEXT extracts the name. Any year works, because month names do not depend on the year.
  7. Return the month from today's date. Use =TEXT(TODAY(),"mmmm") to show the current month name. The result updates whenever the workbook recalculates, such as on reopening.
  8. Combine the month with a year or day if needed. =TEXT(A2,"mmmm yyyy") gives January 2026, and =TEXT(A2,"ddd, mmmm d") gives something like Thu, January 15. The quoted string accepts most date format codes you already know from the Format Cells dialog.
  9. Turn the result into fixed text if you plan to sort or filter on it. TEXT returns text, so sorting that column sorts alphabetically (April, August, December) rather than chronologically. If you need a sortable month, keep a hidden numeric month column using =MONTH(A2) and sort by that instead.
  10. Decide whether you need a formula at all. If you only want the date to display as a month name, select the cells, open Format Cells (Ctrl+1 on Windows, Cmd+1 on Mac), choose Custom, and type mmmm in the Type box. The underlying value stays a real date, so sorting, filtering and calculations keep working. This is the better choice for display-only changes.

Common Mistakes

  • Dates stored as text. This is the most frequent cause of wrong or unchanged results. A date imported from another system may be text that merely looks like a date. Fix it with Data > Text to Columns (choose Delimited, then Finish) or by using =DATEVALUE(A2) in a helper column and pasting the values back over the originals. Menu labels can differ slightly between versions and platforms.
  • Forgetting the quotes around the format code. =TEXT(A2,mmmm) returns an error because mmmm is read as an undefined name, not text. The format code must be in double quotes.
  • Using "m" alone. A single m returns the month as a number, not a name. You need "mm" for a two-digit number, "mmm" for a short name, or "mmmm" for a full name.
  • Expecting the result to behave like a date. TEXT output is plain text. It will not respond to date arithmetic, and it will not sort in calendar order without a numeric helper column.
  • Typing month names manually. Hand-typed names break when dates change and often contain inconsistent spelling or trailing spaces that defeat lookups. Use a formula or cell formatting.
  • Using MONTH when you wanted a name. =MONTH(A2) returns 1 to 12. It is the right tool for calculations and wrong for display names.

Tips

  • Localized versions of Excel use translated format codes in some cases. If you work in a non-English edition, check the format codes Excel lists in the Format Cells dialog rather than copying English examples from the web.
  • To get the month name as a value you can compare with text, wrap it in UPPER or PROPER, for example =PROPER(TEXT(A2,"mmmm")), though mmmm already returns proper case.
  • For a grouped monthly summary, add a column of =TEXT(A2,"mmmm yyyy") and use a PivotTable with that column as the row field. It groups by month name and year together cleanly.
  • Alt+Enter inside the formula bar lets you keep long formulas readable without affecting the result.
  • Press F2 then Enter on a cell to see exactly what it contains without changing it, useful when a formula seems to return the wrong month.

Troubleshooting

If the formula returns the literal text mmmm, the format code is probably not enclosed in quotes, or the cell was typed as text before you entered the formula. Clear the cell, set its format to General, and retype the formula.

If you see #VALUE!, the referenced cell is likely text that Excel cannot interpret as a date. Test with =ISNUMBER(A2): it returns TRUE for real dates and FALSE for text. Convert text dates with Data > Text to Columns or DATEVALUE before applying TEXT.

If the month is wrong by one, your source date may be text in a different regional order than Excel assumes, for example a day-first date read as month-first. Check the cell in the formula bar and re-enter it in a format Excel recognizes, or split it with Text to Columns and set the correct date order.

If the formula shows a serial number like 46000, the result cell is formatted as a number or date. Change it to General or Text.

If the month does not update after you change the source date, calculation may be set to Manual. Go to Formulas > Calculation Options and choose Automatic.

If you are on Excel for the web or mobile, the TEXT function behaves the same, but some editing conveniences differ; enter the formula in the formula bar and confirm with Enter or the check mark.

Frequently Asked Questions

What is the difference between mmm and mmmm?

"mmm" returns the three-letter abbreviation such as Jan; "mmmm" returns the full name such as January.

Can I get the month name without the TEXT function?

Yes. Select the date cells, open Format Cells, choose Custom, and enter mmmm. The cell still holds a real date, which is better for sorting and calculations.

Why does TEXT return a number instead of a name?

The format code is probably "m" or "mm", which produce numeric months. Use "mmm" or "mmmm" for names.

How do I turn a month number into a name?

Use =TEXT(DATE(2026,A2,1),"mmmm"), where A2 holds the number 1 to 12. The TEXT function needs a real date, so DATE creates one.

Does the formula work in older Excel versions?

Yes, TEXT and DATE are long-standing functions available in all supported Excel versions, including desktop, Mac and the web app.