Skip to main content

How to Show a Date as Month and Year in Excel

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

For month headings, put the first day of each month in the cell and give it the custom format mmm yyyy. 01/10/2026 shows as Oct 2026, and the cell is still a real date, so formulas can compare other dates with it.

The example is the Monthly totals sheet of the old overtime timesheet from Part 1 of the Overtime Timesheet series, which has one column per month.

Prerequisites​

Step 1: Open the Custom Category​

Select the heading cells, B1:C1. On the Home tab, open the Number Format list and select More Number Formats, then set Choose Category to Custom.

When I chose Custom, the list started on General, and the cells showed their serial numbers, 46296 and 46327, until I entered a code:

The Monthly totals sheet with B1 selected showing 46296 and 46327, and the formula bar showing 46296

Those numbers are the dates: How to See the Serial Number Behind a Date in Excel.

Step 2: Type mmm yyyy and Confirm​

Type mmm yyyy in the Type box and select Confirm, the tick next to it:

The All formatting options pane with Category Custom, the preview showing 46296, mmm yyyy typed in the Type box and the Confirm tick, both outlined in red

  • mmm is the month as three letters, Jan to Dec.
  • yyyy is the four-digit year.

Step 3: Check the Headings​

Close the pane. B1 and C1 show Oct 2026 and Nov 2026, and the formula bar still shows the date, 01/10/2026:

The Monthly totals sheet with B1 and C1 showing Oct 2026 and Nov 2026, and the formula bar showing 01/10/2026 for B1

The monthly totals under these headings use them as dates: How to Total Hours by Person and Month in Excel with SUMIFS.

Other Month Codes​

CodeShows
mmm yyyyOct 2026
mmmm yyyyOctober 2026
mm/yyyy10/2026
mmm-yyOct-26 (also in the built-in list)

Common Mistakes​

MistakeWhat happensDo this instead
Typing Oct 2026 as textIt looks right but isn't a date, so formulas can't use itType the first of the month and format it
Typing a date in the middle of the monthThe heading is right, but formulas that start from it start mid-monthUse the first day of the month
Typing the code without ConfirmNothing changesSelect the tick

Troubleshooting​

SymptomLikely causeFix
The headings show 46296The cells have the General formatApply mmm yyyy
The month is wrongThe date was read month firstCheck the regional format: How to Change the Regional Format in Excel for the Web

FAQ​

Why not just type "Oct 2026"?​

Because a heading that's a real date can feed formulas: totals between it and the next month, or the next heading from EDATE.

Can I use the same code for a whole column of dates?​

Yes. Select the column and apply mmm yyyy once; every date in it shows as its month and year.

Conclusion​

Put the first of the month in the cell and give it the custom format mmm yyyy. It reads as Oct 2026 and stays a date.

Additional Resources​