A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Excel automatically interprets many entries as dates and applies a default date format. To force the exact format DD-[month]-YYYY and stop Excel from “helping,” there are two main approaches.
- Use a proper custom date format (keeps values as real dates)
- Enter the date in any way Excel accepts (for example
2/2/2026). - Select the cell(s).
- On the Home tab, in the Number group, open the Format Cells dialog (click the small launcher or press
Ctrl+1). - In Category, choose Custom.
- In Type, enter a custom format such as:
-
dd-mmm-yyyy→ e.g.02-Feb-2026 -
dd-mmmm-yyyy→ e.g.02-February-2026
-
- Click OK.
-
dd= day with leading zero -
mmm= month abbreviation (Jan–Dec) -
mmmm= full month name (January–December) -
yyyy= 4‑digit year
- Enter the date in any way Excel accepts (for example
- Treat the entry as text (Excel will not reformat it)
If the goal is to prevent Excel from ever interpreting the entry as a date:
- Select the target cells.
- On the Home tab, under Number Format, choose Text.
- Now type the date exactly as
02-February-2026(or any pattern). Excel will leave it as typed. - Alternatively, prefix the entry with an apostrophe, e.g.
'02-February-2026. The apostrophe is not shown in the cell but forces the content to be stored as text.
Notes:
- If a date appears as a number (e.g.
45200), it means the cell is formatted as Number; change it to a Date or Custom date format via Format Cells. - If Excel is converting other numeric patterns (like
1e9) or similar into scientific notation or dates, using Text format or an apostrophe is the supported way to stop automatic conversion.
References: