How to Stop Excel from Changing Custom Date Formats on Mac
Question details
The user needs to prevent Excel from automatically reverting custom date formats to default regional settings upon selecting the Long Date preset.

- Product
- Microsoft Excel
- Device & OS
- macOS Sonoma (M1 MacBook Pro)
- Scenario
- Applying and maintaining a specific custom date format (yyyy-mm-dd) in an Excel spreadsheet.
- Observed behavior
- Excel automatically changes the custom applied date format back to the system's regional default layout when the Long Date option is selected.
Ensure your macOS and Microsoft Office installations are updated to the latest versions, as early macOS Sonoma releases contained known compatibility bugs affecting regional date formats.
Apply Custom Date Formats Without Using the Ribbon Presets
Avoid clicking 'Long Date' or 'Short Date' after applying a custom format, as these presets are designed to immediately override your custom settings.
In Microsoft Excel, selecting a standard format preset from the top ribbon will force the cell to adopt your Mac's default regional settings, erasing any custom formatting you previously applied.
Highlight the cells containing the dates you want to apply the custom format to.
Right-click the selected cells and choose 'Format Cells' from the context menu, or press the 'Command + 1' keyboard shortcut.
Go to the 'Number' tab, select 'Custom' from the category list, enter 'yyyy-mm-dd' (or your preferred format) in the Type box, and click 'OK'.
Do not click 'Long Date' or 'Short Date' in the Excel ribbon afterward. Leave the cells as they are to retain the custom formatting.

Sync macOS Regional Settings with Excel
Adjust your Mac's system-wide date settings so that Excel's default formats match your preferred layout.
Test Formatting in a New Workbook
Determine if the formatting issue is caused by a corrupted spreadsheet file rather than application settings.
Easily Format Dates with WPS Spreadsheet
Avoid frustrating formatting glitches on macOS by using WPS Office. WPS Spreadsheet provides a stable, highly compatible interface to apply and maintain custom date formats like yyyy-mm-dd without unexpected changes.
- 1. Open your file: Launch WPS Office on your Mac and open your existing spreadsheet document.
- 2. Select the cells: Highlight the specific cells containing the dates you wish to format.
- 3. Apply custom format: Right-click and select 'Format Cells'. Under the Number tab, choose 'Custom', type 'yyyy-mm-dd', and click 'OK'.

Frequently Asked Questions
Why does Excel change my date format to a number?
Excel stores dates as sequential serial numbers for calculations (e.g., January 1, 1900, is serial number 1). If a cell's format is accidentally changed to 'General' or 'Number', the date will display as its underlying serial number. You can fix this by highlighting the cell, opening Format Cells, and changing the category back to 'Date'.
How do I make yyyy-mm-dd the default date format in Excel for Mac?
Excel relies on your macOS system settings for its default date layouts. To change the default, go to Apple Menu > System Settings > General > Language & Region, and modify your system's short date format to yyyy-mm-dd. Excel will inherit this setting upon restart.
Can I use the same custom date formats in WPS Spreadsheet as I do in Excel?
Yes, WPS Spreadsheet fully supports Excel's custom number and date formatting syntax. Custom formats like 'yyyy-mm-dd' or 'dd-mmm-yy' will work flawlessly and display identically in both programs.




