Excel shows dates in whatever format your computer uses by default, but you can change how any date appears in seconds
When you type a date into Excel, the program stores the actual date but displays it in a format tied to your computer's regional settings. If your dates show as 12/25/2024 but you need them as 25-Dec-2024 or 2024-12-25, you do not have to retype them. Excel can reformat the dates you already have without changing the underlying data.
The fastest way is to select the cells with dates, right-click, choose Format Cells, pick a date format from the list, and click OK. The dates themselves stay the same — only how they look on screen changes. You can also use the Format menu or create a custom format if none of the built-in options match what you need.
Key Takeaways
- Select the cells containing dates, right-click, and choose Format Cells to open the formatting dialog in one step.
- The Date category in Format Cells shows dozens of preset formats you can click to apply instantly.
- Changing the format does not change the date itself — Excel still knows the real date, and formulas using those cells still work correctly.
- If you need a format that is not in the preset list, you can create a custom format using codes like YYYY for year, MM for month, and DD for day.
- You can also format dates using the Format menu at the top, which opens the same dialog as right-clicking.
Select the dates you want to change
Click on the first cell that contains a date. If the dates are in a column, click the column header letter to select the entire column at once. If they are scattered across different cells, hold Ctrl (or Cmd on Mac) and click each cell individually to select multiple non-adjacent cells.
You can also click and drag to select a range of dates. Click the first date, hold down the mouse button, and drag to the last date you want to format. When you release, all the dates in that range are selected and highlighted in blue.
Open the Format Cells dialog
Right-click anywhere on your selection. A menu appears with several options. Look for Format Cells near the bottom of the menu and click it. The Format Cells dialog opens with several tabs across the top.
If you do not see Format Cells in the right-click menu, you can also open it from the top menu: click Format, then Cells. On Mac, the menu says Format and then Format Cells. Both routes open the same dialog.
Choose a date format from the preset list
The Format Cells dialog opens on the Number tab. On the left side, you see a list of categories. Click Date to see all the date formats Excel offers. The middle column shows the format code (like mm/dd/yyyy), and the right column shows how your dates will look if you pick that format.
Scroll through the list until you find the format you want. Common options include 12/25/2024, 25-Dec-2024, December 25, 2024, and 2024-12-25. Click the format once to select it, and the preview on the right updates to show how your dates will appear. When you find the one you want, click OK at the bottom right of the dialog.
Excel applies the new format to all the cells you selected. The dates now display in the format you chose, but the actual dates have not changed. Any formulas that reference these cells still work the same way.
Create a custom format if you need something different
If none of the preset formats match what you need, you can build your own. In the Format Cells dialog, still on the Number tab, look at the bottom of the Category list on the left. Click Custom. The dialog changes to show a text field labeled Type where you can enter a custom format code.
Common date codes are: YYYY for a four-digit year (2024), YY for a two-digit year (24), MM for month as a number (01-12), MMM for month as three letters (Jan, Feb), MMMM for full month name (January, February), DD for day (01-31), and D for day without a leading zero (1-31). You can combine these with hyphens, slashes, spaces, or other characters. For example, YYYY-MM-DD creates 2024-12-25, and DD MMMM YYYY creates 25 December 2024.
Type your custom format code into the Type field and click OK. Excel applies it to your selected cells. If the result is not what you expected, you can repeat the process and try a different code.
Format dates in a new column without changing the originals
If you want to keep the original dates in their current format and also have them displayed in a different format, create a new column and use a formula to convert them. Click an empty cell next to your dates and type =TEXT(A1,"mm/dd/yyyy"), replacing A1 with the cell containing the date you want to convert and "mm/dd/yyyy" with the format code you want.
Press Enter. The formula converts the date in A1 to the format you specified and displays it in the new cell. Click the cell with the formula, then drag the small square at the bottom right corner down to copy the formula to other cells in the column. This method is useful when you need both the original format and the new format in the same spreadsheet.
Undo a format change if you change your mind
If you apply a date format and decide you do not like it, press Ctrl+Z (or Cmd+Z on Mac) immediately to undo the change. Excel reverts the dates to their previous format. You can undo multiple times to go back several steps if needed.
If you have already saved the file and closed it, you can still open it again, select the dates, and apply a different format. There is no permanent damage — changing the format never deletes or corrupts the date data itself.
Frequently Asked Questions
Why does Excel show my date as a number like 45000 instead of a date?
Excel stores dates as numbers internally, but it normally displays them as dates. If you see a number instead, the cell is formatted as a number rather than a date. Select the cell, right-click, choose Format Cells, click Date in the Category list, pick a date format, and click OK. The number converts to a readable date.
Can I change the date format for the entire spreadsheet at once?
Yes. Press Ctrl+A (or Cmd+A on Mac) to select all cells in the spreadsheet, then right-click and choose Format Cells. Pick a date format and click OK. However, this also affects any other data in the sheet, so it is usually safer to select only the columns or cells that contain dates.
What if I type a date and Excel does not recognize it as a date?
Excel recognizes dates based on your computer's regional settings. If you type a date in an unusual format, Excel may treat it as text instead. Try typing the date in a format your computer recognizes, like 12/25/2024 or 2024-12-25. If Excel still treats it as text, select the cell, use Format Cells to change it to Date format, and the text may convert automatically.
Do date format changes affect formulas that use those cells?
No. Formulas work with the actual date value, not how it is displayed. If you have a formula that adds days to a date or calculates the difference between two dates, changing the format of those dates does not break the formula or change its result.
Can I save a custom date format so I can use it again later?
Custom formats you create are saved in that specific spreadsheet file. If you want to use the same custom format in a different file, you can create it again using the same format code, or you can copy a cell with the custom format and paste it into the new file. Excel does not have a built-in way to save custom formats across all files.