Need Excel to display dates in month-year (MM YYYY) format? The simplest way is to use the TEXT function or format cells as text—this avoids date-time quirks and ensures consistent output. If you have dates in a column, you can apply this to an entire range with minimal effort, or manually format individual cells for precision.
What You'll Need
- An open Microsoft Excel file with dated data
- Your preferred method: TEXT function (for dynamic adjustments), or cell formatting (for one-time changes)
- A cell where you want the formatted result (e.g., A2)
Step-by-Step
- Method 1: Use the TEXT Function (Dynamic Adjustment)
- Select the cell where you want the formatted date (e.g.,
A2). - Type the formula:
=TEXT(A1, "mm yyyy")A1is the cell containing your date (Excel automatically interprets it as a date).- Replace
"mm yyyy"with your desired format string (e.g.,"m/yy"for MM/YY).
- Press
Enter. Excel will display the date in MM YYYY format.
- Select the cell where you want the formatted date (e.g.,
- Method 2: Format Cells as Text (One-Time Change)
- Right-click the cell or column (e.g., cell
A2) and choose Format Cells. - Go to the Custom tab.
- Enter the format:
mm yyyy(no quotes). - Click OK. All dates in the selected cells will now display as MM YYYY.
- Right-click the cell or column (e.g., cell
- Method 3: Apply to an Entire Column (Bulk Formatting)
- Select the column with dates (e.g.,
A2:A100). - Right-click the selected cells and choose Format Cells.
- In the Custom section, type
mm yyyy. - Press OK. All cells in the range will convert to MM YYYY.
- If the column already contains text or numbers, Excel will overwrite them—double-check before applying to large ranges.
- Select the column with dates (e.g.,
Common Mistakes
- Forgetting to Replace Date Cells
- If your formula references a cell with text or a number (e.g.,
"2023"instead of a date), the plugin will output nothing or an error. - Solution: Ensure the referenced cell contains a valid date (e.g.,
1/1/2023) before applying the formula.
- If your formula references a cell with text or a number (e.g.,
- Incorrect Format String Syntax
- Excel’s custom format requires exact syntax:
"mm yyyy"(no commas). Using commas (e.g.,"mm, yyyy") will produce incorrect results. - Solution: Verify the format string matches the desired output (e.g.,
"m/yy"for MM/YY).
- Excel’s custom format requires exact syntax:
- Overwriting Data Without Verification
- Formatting an entire column can replace existing values—only use this method if you’re certain the data is unimportant or can be redeleted.
- Solution: Select smaller ranges first or manually check results after applying bulk formatting.
Tips
- Use Absolute References for Consistency
- If formatting multiple rows, add dollar signs to anchor the formula (e.g.,
=TEXT($A$1, "mm yyyy")). This ensures the date cell reference doesn’t shift when dragging the formula. - Example: For a header row, drag the formula
downwhile holdingF4(Absolute Reference) to prevent the cell reference from changing.
- If formatting multiple rows, add dollar signs to anchor the formula (e.g.,
- Leverage Dynamic Formulas for Reports
- Use the TEXT function with a dynamic range (e.g.,
=TEXT(A2:A100, "mm yyyy")) to format an entire column in one step. - Tip: Add a helper column to store the formatted dates while preserving the original data.
- Use the TEXT function with a dynamic range (e.g.,
- Check for Hidden Characters
- If dates appear corrupt (e.g.,
#VALUE!), inspect the source cell for hidden formatting likecomma-separated textorcurrency symbols. - Solution: Use
Ctrl+Shift+Tto convert text to columns if formulas fail.
- If dates appear corrupt (e.g.,
- Test with a Single Cell First
- Apply the formula to one cell (e.g.,
A2) before extending to a range. - This avoids errors if the underlying data is invalid (e.g.,
"July 2023"instead of a date).
- Apply the formula to one cell (e.g.,
- Export Formatted Data
- If you need to share formatted data, export your sheet as a CSV or Excel file and reapply formatting in the recipient’s software.
- Note: CSV exports may preserve original date formatting—use Excel’s "As Text" option for full control.
Troubleshooting
- Formula Returns #VALUE!
- The referenced cell (
A1) contains non-date data (e.g., text or numbers). - Solution: Convert the cell to a date manually (e.g., type
1/1/2023if the cell has"Jan 2023"). - Or replace the formula with:
=TEXT("01/01/" & YEAR(A1) & "", "mm yyyy")(this forces Excel to parse dates from text).
- The referenced cell (
- Dates Appear as Time Instead of MM YYYY
- Your Excel sheet is set to a time display mode (common in older workbooks).
- Solution: Switch to Date mode: Go to File > Options > Language Settings > Date format, select Long date (e.g.,
MMMM dd, yyyy), then restart Excel. - Alternatively, force formatting by selecting cells and choosing Format Cells > Custom with
mm yyyy.
- Bulk Formatting Didn’t Work
- Excel may ignore custom formatting if the data is hidden, frozen, or part of a table.
- Solution: Unfreeze the pane (
View > Freeze Panes > Unfreeze Panes), check for hidden rows (Home > Show/Hide > Unhide Rows), or convert the range to a table (Ctrl+T) and apply custom formatting separately.
- Formulas Update Incorrectly When Dragging
- The cell reference in your formula changed (e.g.,
A2becameA3). - Solution: Use absolute references (e.g.,
$A$1) or drag formulas withF4(Absolute Reference) until the reference stays fixed.
- The cell reference in your formula changed (e.g.,
Frequently Asked Questions
Why does Excel format dates differently in reports?
Excel displays dates based on the system’s locale settings. To standardize MM YYYY across reports, use the TEXT function or force custom formatting. For global reports, set Excel’s locale toEnglish (United States) via File > Options > Language Settings > Additional Settings.
How can I convert a date string like "January 2023" to MM YYYY?
Use a custom formula like=TEXT("01/01/" & TEXTJOIN("", TRUE, SPLIT(MID(A1, FIND(" ", A1)+1, 3), " ")), "mm yyyy"). This extracts the month and year from text. For simpler cases, use =TEXT(A1, "mm yyyy") if Excel can interpret the string as a date.
Why does Excel sometimes show dates as numbers (e.g., 37370)?
Excel stores dates in days since 1899 (serial numbers), so formulas like=DATE(YEAR(A1), MONTH(A1), DAY(A1)) convert them. To force text output, use =TEXT(A1, "mm yyyy"), but note the result may be #VALUE! if the input is invalid.
How do I reformat dates after exporting to CSV?
CSV files preserve original cell types. To reformat dates in CSV: 1. Import the file back into Excel. 2. Use Data > Text to Columns to split the date string (e.g., "Jan 2023" → separate month/year). 3. Apply the TEXT function to reformatted cells.Can I use this method in Google Sheets?
Yes, but the syntax differs: Use=TEXT(A1, "mm yyyy") in Google Sheets. For bulk formatting, select cells, right-click, and choose Format > Number > Date with a custom format (select Custom > type mm yyyy).
Why does my formatted range not update when new dates are added?
If using a formula like=TEXT(A1, "mm yyyy"):
1. The range must include the new dates.
2. Alternatively, use an absolute reference (e.g., $A$1) to lock the date cell.
3. For dynamic ranges, expand the selection (Ctrl+Shift+Arrow Key) to include all dates before applying the formula.