Smart Systems for Home

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

Excel Formula to Get Month from Date

· 5 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 return the month from a date in Excel, use =MONTH(A1) for the month number (1–12) or =TEXT(A1,"mmmm") for the full month name. Both formulas work in Excel for Microsoft 365, Excel 2021, 2019, 2016, and Excel for Mac, and they accept a cell reference or a date serial number. The only prerequisite is that Excel recognises your entry as a real date, not as text.

What You'll Need

  • Excel 2016 or later (desktop or web) — the formulas below also work in Excel 2013 and Excel for Mac.
  • A date stored in a cell, either typed as a date (e.g., 15/03/2024) or produced by a function such as TODAY() or DATE().
  • Basic familiarity with entering formulas and copying them down a column.

Step-by-Step

  1. Confirm the date is a real date. Select the cell containing the date and look at the formula bar. If it shows a date (e.g., 15/03/2024 or 3/15/2024) and the cell is right-aligned by default, Excel treats it as a date. If it is left-aligned or shows an apostrophe in the formula bar, it is text and MONTH will return #VALUE!. Convert text dates with DATEVALUE or by using Data > Text to Columns.
  2. Pick an empty cell for the result. For example, if your date is in A2, click B2.
  3. Enter the month-number formula. Type =MONTH(A2) and press Enter. The result is a number from 1 (January) to 12 (December). This is the most reliable formula because it works regardless of your regional date format.
  4. Enter the month-name formula if you want text. In another cell, type =TEXT(A2,"mmmm") for the full name (January) or =TEXT(A2,"mmm") for the abbreviation (Jan). Press Enter. The result is text, so it will be left-aligned and cannot be used directly in numeric calculations.
  5. 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 last adjacent row. Relative references adjust automatically, so A2 becomes A3, A4, and so on.
  6. Check the results. Compare a few rows against the original dates. If a result looks wrong, the source cell is probably text or a different date system (see Troubleshooting).

Common Mistakes

  • Dates stored as text. MONTH returns #VALUE! when the argument is text. Check alignment and the formula bar; fix with DATEVALUE or Text to Columns.
  • Using MONTH on a blank cell. A blank cell is treated as 0, and MONTH(0) returns 1 (January). Use =IF(A2="","",MONTH(A2)) to avoid misleading results.
  • Expecting TEXT to return a number. TEXT returns text, so sorting or calculating on it behaves differently. Keep a numeric MONTH column if you need to sort or filter by month order.
  • Confusing MONTH with MONTHNAME. Excel has no MONTHNAME function; the month name comes from TEXT or CHOOSE. Google Sheets has MONTHNAME, but Excel does not.
  • Regional format mix-ups. If dates are typed as 03/15/2024 but your system expects 15/03/2024, Excel may store them as text or the wrong date. Set the correct region in Windows or macOS settings, or enter dates with DATE(year,month,day).

Tips

  • Use =MONTH(TODAY()) to get the current month number without a source cell.
  • To show the month name with the year, use =TEXT(A2,"mmmm yyyy").
  • For a month name in a specific language, TEXT respects your system locale; there is no language argument. Change the system locale if you need another language.
  • If you need to group by month in a PivotTable, add a helper column with MONTH and use that as a row field, or use the PivotTable's date grouping feature (right-click a date field > Group > Months).
  • Combine with YEAR and DAY for full date parts: =YEAR(A2), =MONTH(A2), =DAY(A2).

Troubleshooting

  • #VALUE! error. The cell is text, empty, or contains an invalid date. Test with =ISNUMBER(A2); TRUE means it is a real date. Convert text with =DATEVALUE(A2) in a helper column, then copy the values back.
  • All results show 1. The source cells are likely blank or zero. Check for empty rows and use the IF wrapper above.
  • Wrong month for some rows. Dates may be stored in a different date system (1900 vs 1904) or entered in the wrong order. Check File > Options > Advanced > When calculating this workbook for the date system setting (Mac: Excel > Preferences > Calculation).
  • Formula shows as text. The cell is formatted as Text before you typed the formula. Change the format to General, then re-enter the formula (press F2, then Enter).
  • Results do not update. Calculation may be set to Manual. Go to Formulas > Calculation Options > Automatic.

Frequently Asked Questions

How do I get the month name instead of a number?

Use =TEXT(A2,"mmmm") for the full name or =TEXT(A2,"mmm") for the abbreviation. The result is text, not a number.

Does MONTH work on dates formatted as text?

No. MONTH requires a real date or a date serial number. Convert text dates first with DATEVALUE or Data > Text to Columns.

Can I get the month from a date without a formula?

Yes. Format the cell with a custom number format of mmmm (Ctrl+1 > Number > Custom). This changes only the display; the underlying date stays intact.

Why does MONTH return 1 for an empty cell?

Excel treats an empty cell as 0, and 0 corresponds to January 0, 1900, so MONTH returns 1. Wrap the formula in IF to return blank for empty cells.

Is there a MONTHNAME function in Excel?

No. Excel has no MONTHNAME function; use TEXT or CHOOSE instead. Google Sheets does have MONTHNAME, which can cause confusion when moving files between the two.

How do I sort dates by month across years?

Add helper columns for YEAR and MONTH, then sort by YEAR first and MONTH second. A single MONTH column alone will mix January of different years together.