Removing the year from a date in Excel is achieved by changing the cell's number format rather than altering the underlying data. This process hides the four-digit year, displaying only the month and day (e.g., "01/15" instead of "01/15/2023"). The original date value remains intact for calculations, sorting, and filtering, ensuring your spreadsheet logic continues to function correctly while improving visual clarity.
What You'll Need
- Microsoft Excel installed on your computer (desktop or web version).
- A dataset containing dates formatted as valid Excel date values.
- Basic familiarity with selecting cells and accessing the ribbon menu.
Step-by-Step
- Select the target cells: Click and drag to highlight the column or range of cells containing the dates you wish to modify. If you want to apply this change to the entire column, click the column letter header (e.g., Column A) at the top of the sheet.
- Open the Format Cells dialog: With the cells selected, right-click anywhere within the highlighted area and choose Format Cells... from the context menu. Alternatively, you can press the keyboard shortcut
Ctrl + 1(orCmd + 1on Mac) to open the same window quickly. - Navigate to the Custom category: In the Format Cells dialog box, ensure you are on the Number tab. Look at the list on the left side under "Category" and select Custom. This option allows you to define specific display rules that differ from standard presets.
- Enter the custom format code: In the Type field, delete any existing text and enter one of the following codes depending on your desired output:
mm/ddfor numeric month and day (e.g., 01/15).mmm dfor abbreviated month name and day (e.g., Jan 15).dd mmmfor day followed by abbreviated month (e.g., 15 Jan).
mfor minutes if mixing time, but uppercaseMor lowercasemgenerally works for months in date contexts depending on locale settings. For standard US English,mm/ddis safest. - Verify the preview: As you type the code, look at the Sample section near the top of the dialog. It should show how the selected date will appear without the year. If the sample looks incorrect, adjust the code until it matches your requirement.
- Apply the changes: Click OK to close the dialog. The selected cells will now display only the month and day. The actual data stored in the cells remains a full date serial number, meaning you can still sort chronologically or perform date arithmetic.
Common Mistakes
The most frequent error is assuming that changing the format deletes the year permanently. Users often try to use Find and Replace to remove the year digits, which corrupts the data type, turning dates into text strings. Another common issue is applying the format to cells that contain text rather than true date values. If a cell contains "January 1st" as text, Excel cannot interpret it as a date, so the custom format will have no effect. Always ensure your source data is recognized as a date by checking if it aligns to the right side of the cell by default.
Tips
If you need to extract the month and day into separate columns for further analysis, consider using formulas like =MONTH(A2) and =DAY(A2) instead of just hiding the year visually. This creates new numerical data points that can be used in pivot tables or charts. Additionally, if you are working with international dates, be mindful of locale settings. Some regions prefer dd/mm over mm/dd. You can check your system's regional settings in Windows Control Panel or macOS System Settings to understand why certain formats might display differently across machines.
Troubleshooting
If the year does not disappear after following the steps above, first verify that the cells actually contain date values. Click a cell and look at the formula bar; if it shows a long number (like 44927), it is a valid date. If it shows text, convert it to a date first using the Text to Columns feature or the DATEVALUE function. Second, check if conditional formatting is overriding your manual format. Go to Home > Conditional Formatting > Manage Rules to see if any rules are forcing a specific display style. Finally, ensure you did not accidentally add extra characters in the Type field. A single typo, such as adding a space before the code, can cause Excel to ignore the custom format instruction.
Frequently Asked Questions
Does removing the year affect sorting?
No. Sorting relies on the underlying serial number value, not the displayed text. Dates will still sort chronologically by year, then month, then day, even if the year is hidden from view.Can I remove the year and keep the time?
Yes. Use the custom format codehh:mm or hh:mm AM/PM. This will hide both the date and the year, showing only the clock time. To show month, day, and time, use mm/dd hh:mm.
Will this change print exactly as shown?
Yes. Excel prints what is displayed on the screen. If the year is hidden via formatting, it will not appear in printed documents or PDF exports generated directly from Excel.How do I revert back to the full date?
Select the cells, pressCtrl + 1, go to the Number tab, and select Date from the Category list. Choose your preferred date style from the Type list and click OK. This restores the standard date display including the year.