Smart Systems for Home

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

How to Edit Date Format in Excel: Step-by-Step

· 6 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 edit the date format in Excel, select the cells containing dates, press Ctrl+1 (or right-click and choose Format Cells), go to the Number tab, pick Date from the category list, and choose the format you want from the Type list. Click OK to apply it. This changes how the date is displayed without altering the underlying date value, so sorting and calculations still work correctly. You can also use the Home tab's Number Format dropdown for quick presets, or the TEXT function to convert a date to text in a specific format. The exact labels may vary slightly by Excel version, device, or region, but the core steps are the same on Windows, Mac, and Excel for the web.

What You'll Need

  • Excel installed on your computer or access to Excel for the web.
  • A spreadsheet with date values (or cells you plan to enter dates into).
  • Basic familiarity with selecting cells and using the ribbon or menu bar.

Step-by-Step

  1. Select the cells you want to format. Click a single cell, drag to select a range, or press Ctrl+A to select the entire worksheet. If you only want to format future entries, you can select entire columns (e.g., click the column header) before applying the format.
  2. Open the Format Cells dialog. Press Ctrl+1 (on Mac, Cmd+1), or right-click the selection and choose Format Cells. You can also click the small arrow in the bottom-right corner of the Number group on the Home tab.
  3. Go to the Number tab. In the Format Cells dialog, click the Number tab if it is not already active.
  4. Choose the Date category. In the Category list, click Date. The Type list will show available date formats such as 3/14/2012, 14-Mar-12, March 14, 2012, and others. The exact list depends on your region and Excel version.
  5. Pick a format from the Type list. Click the format that matches how you want the date to appear. A preview appears in the Sample box above the list.
  6. Adjust regional settings if needed. If the date formats you see do not match your region (for example, you expect day-month-year but see month-day-year), close the dialog and check your Windows or Mac region settings. Excel uses the system's short date and long date settings to build the Type list. Changing the system region and restarting Excel will update the available formats.
  7. Click OK to apply. The selected cells now display dates in the chosen format. The underlying date value remains unchanged, so formulas and sorting continue to work.
  8. For quick presets, use the Home tab. Select your cells, then on the Home tab, open the Number Format dropdown (it may show General or Date) and choose Short Date or Long Date. This applies the system's default short or long date format without opening the Format Cells dialog.
  9. To create a custom format, use the Custom category. In the Format Cells dialog, choose Custom from the Category list. In the Type box, enter a format code such as dd/mm/yyyy or mmm d, yyyy. The code uses placeholders: d for day, m for month, y for year. Click OK to apply. Custom formats are saved only in the current workbook.
  10. To convert a date to text in a specific format, use the TEXT function. For example, =TEXT(A1, "mm/dd/yyyy") returns a text string. Note that the result is text, not a date, so it will not sort or calculate as a date. Use this only when you need a fixed text representation.

Common Mistakes

  • Formatting text that looks like a date. If dates are left-aligned in the cell, they are likely stored as text. Formatting will not change their appearance. Convert them to real dates using Data > Text to Columns or by re-entering them.
  • Expecting the format to change the underlying value. Changing the display format does not alter the date's serial number. If you need a different actual date, edit the cell content.
  • Using the wrong regional settings. Excel builds its date format list from your system region. If you need a format not listed, either change the system region or use a custom format code.
  • Applying a format to the wrong selection. Formatting only affects selected cells. If new rows are added later, they may not inherit the format unless you format entire columns or use a table.
  • Confusing custom formats with the TEXT function. Custom formats change display only; TEXT converts to text. Mixing them up can lead to sorting or calculation errors.

Tips

  • Use Ctrl+1 as a quick way to open Format Cells from anywhere in Excel.
  • To apply a format to an entire column, click the column header before formatting. New entries will then use that format automatically.
  • If you work with dates from different regions, consider using the DATEVALUE function to convert text dates to real dates before formatting.
  • Custom format codes are case-insensitive: m and M both represent month. Use mm for two-digit months, mmm for abbreviated month names, and mmmm for full month names.
  • To remove date formatting and return to the default, select the cells and choose General from the Number Format dropdown. The date will display as a serial number.

Troubleshooting

  • Dates appear as numbers (e.g., 45000). The cell is formatted as General or Number. Apply a Date format as described above.
  • Format changes do not stick. The cells may be part of a table or have conditional formatting overriding the display. Check for conditional formatting rules under Home > Conditional Formatting > Manage Rules.
  • Dates are stored as text and won't format. Use Data > Text to Columns, choose Delimited, and in step 3 select Date and the correct order (e.g., MDY). This converts text to real dates.
  • Custom format code is not accepted. Ensure you are using valid placeholders and separators. For example, dd/mm/yyyy is valid; dd-mm-yyyy is also valid. Avoid unsupported characters.
  • Excel for the web has limited custom format options. If you need advanced custom formats, use the desktop version of Excel.

Frequently Asked Questions

How do I change the default date format for new workbooks?

Excel uses your system's regional settings for default date formats. Change the short and long date formats in your operating system's region settings, then restart Excel. New workbooks will use the updated formats.

Can I format a date as text without losing the date value?

No. Formatting changes only the display. If you need a text string, use the TEXT function, but be aware the result is text and will not behave as a date in calculations.

Why do some dates show as left-aligned?

Left-aligned dates are usually stored as text. Excel treats them as text strings, so date formatting has no effect. Convert them to real dates using Text to Columns or by re-entering them.

How do I apply a date format to an entire column including future entries?

Select the entire column by clicking the column header, then apply the date format. Any new entries in that column will inherit the format.

Can I use a custom date format like “dd-mmm-yy” in Excel for the web?

Excel for the web supports many custom formats, but the available options may be more limited than the desktop version. If a custom format is not available, try the desktop app.