How to Fix Excel Protected Sheet Changing Numbers to Dates
Question details
Users experience an issue where numeric values automatically change to date formats or display as hash marks after an Excel worksheet is protected.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Viewing or interacting with data in a protected Excel worksheet.
- Observed behavior
- Numbers display as dates or hash marks, which typically relates to underlying cell formats, narrow column widths, or local app glitches rather than the protection feature itself.
Verify whether you have the password to unprotect the worksheet, as modifying cell formats on a protected sheet requires you or an administrator to remove the protection first.
Unprotect the Sheet and Change Formatting to General
The most common cause is incorrect underlying cell formatting. You must unprotect the sheet to correct this and restore the numerical values.
Protecting an Excel worksheet normally does not change cell formatting automatically. If cells have been converted to dates, the original numerical values may have been placed in cells that already contained date formatting rules.
Go to the 'Review' tab on the Excel ribbon, click on 'Unprotect Sheet', and enter the password if prompted by the system.
Highlight the specific cells or columns where your numbers are incorrectly displaying as dates.
Right-click the selected cells, choose 'Format Cells', navigate to the 'Number' tab, select 'General' or 'Text', and click 'OK'.
If you see hash marks (###) instead of numbers, double-click the right boundary of the column header to widen the column.

Check the Workbook in Excel Online
Determine if the issue is tied to the specific workbook file or if there is a glitch with your local Excel desktop installation.
Easily Prevent Format Changes with WPS Spreadsheet
WPS Spreadsheet provides intuitive cell formatting and sheet protection features, ensuring your numbers never accidentally convert to dates. It is fully compatible with Microsoft Excel files and offers a streamlined interface.
- 1. Open your workbook: Launch WPS Spreadsheet and open your affected .xlsx file.
- 2. Unprotect the sheet: Navigate to the 'Review' tab and click on 'Unprotect Sheet'.
- 3. Format your data: Select the cells displaying dates, right-click, and choose 'Format Cells'.
- 4. Apply General format: Under the Number tab, select 'General' and click 'OK' to restore your numerical values instantly.

Frequently Asked Questions
Why do my numbers automatically turn into dates in Excel?
Excel attempts to auto-detect data types based on underlying cell properties. If a cell was previously formatted as a date, entering a standard number will cause Excel to interpret that number as a date serial value. Changing the cell format back to 'General' or 'Text' will resolve this.
Does protecting a worksheet change my cell formatting?
No, protecting a sheet simply locks the current state of the cells to prevent unauthorized edits. If formats change unexpectedly, it is usually due to preexisting cell formatting rules, conditional formatting, or a temporary glitch in the local Excel installation.
How do I fix hash marks (###) in my protected Excel sheet?
Hash marks typically indicate that the column is too narrow to display the entire number or date. To fix this, you must first unprotect the sheet from the 'Review' tab, then double-click or drag the column boundary in the header to widen it.




