How to Fix Excel Dates Displaying as Five-Digit Numbers After Conditional Formatting
Question details
The user needs to correct dates that are incorrectly displaying as five-digit numbers after setting up conditional formatting rules.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Applying conditional formatting rules to spreadsheet cells that contain calendar dates.
- Observed behavior
- The date values unexpectedly change into five-digit serial numbers instead of displaying in a standard date format.
Before modifying your conditional formatting rules, verify if the affected cells have been manually switched to the 'General' number format, which naturally exposes the underlying date serial numbers.
Adjust Cell Format and Conditional Formatting Rules
This is the primary method to restore date displays and ensure your conditional formatting rules do not override the cell's number format to 'General'.
Excel stores dates as sequential serial numbers to allow for mathematical calculations. When a conditional formatting rule strips the specific cell format or resets it to 'General', these underlying serial numbers become visible.
By reapplying the Short Date format and explicitly setting the date format within the conditional rule itself, you can prevent this override.
Highlight the specific cells or the entire column where the dates are displaying as five-digit numbers.
Navigate to the Home tab on the ribbon, locate the Number Format dropdown menu, and select 'Short Date'.
Still on the Home tab, click 'Conditional Formatting', then select 'Manage Rules' from the dropdown list. Choose the rule applied to your dates and click 'Edit Rule'.
Click the 'Format' button inside the rule dialog, switch to the 'Number' tab, select 'Date', and choose your preferred date format. Click OK to save and apply.

Disable the 'Show Formulas' Setting
Use this solution if dates still appear as serial numbers despite proper formatting, as the worksheet might be set to display underlying values instead of calculated results.
Convert Text Dates Using the DATEVALUE Function
Apply this solution if your source date values were imported or entered as plain text, preventing standard formatting from recognizing them as actual dates.
Easily Manage Conditional Formatting and Dates with WPS Office
WPS Spreadsheet provides a highly intuitive interface for managing conditional formatting and number formats. You can quickly fix five-digit date issues and prevent formatting conflicts with its straightforward rules manager.
- 1. Open your spreadsheet: Launch WPS Office and open the file containing the formatting issues.
- 2. Select the affected cells: Highlight the cells or columns displaying dates as five-digit numbers.
- 3. Apply a date format: Go to the Home tab, click the number format dropdown, and choose 'Short Date'.
- 4. Update conditional rules: Click Conditional Formatting > Manage Rules to edit your active rule and ensure the Number format is set to Date.

Frequently Asked Questions
Why does Excel store dates as five-digit numbers?
Excel tracks dates as sequential serial numbers starting from January 1, 1900. For example, the number 44000 represents a specific date. This system enables the software to seamlessly perform calculations, such as adding or subtracting days from a date.
Will changing the date format alter my underlying data?
No. Changing a cell's number format only affects how the data is visually displayed on the screen. The underlying serial number remains exactly the same, ensuring all formulas and calculations relying on that date remain accurate.
How do I prevent conditional formatting from changing my date format?
When creating or editing a conditional formatting rule, you must explicitly define the Number format within the rule's format settings. If the number format is left undefined or defaults to General, it may override the cell's standard date format.
Can I apply a custom date format within a conditional formatting rule?
Yes. Open the Conditional Formatting Rules Manager, click Edit Rule, and select the Format button. Navigate to the Number tab, choose Custom, and type your desired format code (for example, 'dd-mmm-yyyy') into the Type field.




