How to Stop Excel from Changing Decimal Numbers into Dates
Question details
The user is experiencing an issue where decimal numbers entered into spreadsheet cells are automatically converted into dates or unexpected long values.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Entering decimal numbers (such as 2.99) into spreadsheet cells for data tracking or calculations.
- Observed behavior
- The entered decimal values are automatically converted into date formats or long numeric strings instead of retaining their original decimal format.
Before changing your system settings, try entering the data in a brand new, blank workbook to determine if the formatting issue is specific to your current file.
Format Cells as Text or Number
Pre-formatting the cells prevents the application from automatically guessing the data type and applying incorrect date formats.
Spreadsheet programs try to be helpful by automatically detecting the type of data you enter. If a decimal resembles a date format based on your system settings, it will auto-convert. Manually defining the cell format overrides this behavior.
Highlight the range, column, or row where you plan to enter your decimal numbers.
Right-click the selected area and choose "Format Cells" from the context menu.
Under the "Number" tab, select "Number" (and specify the required decimal places) or choose "Text" to treat the input as pure characters.
Type your decimal numbers again. They should now display correctly without converting to dates.

Verify OS Decimal Separator and Regional Settings
An incorrect decimal separator configured in your operating system's regional settings can cause standard decimals to be misinterpreted as dates.
How to Format Decimals Correctly in WPS Spreadsheet
WPS Spreadsheet offers precise control over your data types, ensuring your decimal numbers stay exactly as you typed them. Follow these steps to set up strict number formatting and avoid unwanted date conversions.
- 1. Select Your Data Range: Highlight the cells, columns, or rows in WPS Spreadsheet where you will be entering decimal numbers.
- 2. Open Format Cells: Right-click the highlighted area and select "Format Cells" from the dropdown menu, or use the Ctrl+1 keyboard shortcut.
- 3. Apply Number Formatting: In the Number tab, choose "Number" from the category list on the left and specify your desired decimal places. Click OK.
- 4. Enter Your Data: Type your decimal numbers into the formatted cells. WPS Spreadsheet will now preserve the exact decimal values without altering them.

Frequently Asked Questions
Why does my spreadsheet think 2.99 is a date?
Spreadsheet programs have built-in auto-formatting rules designed to save time. If your system's decimal separator conflicts with standard date delimiters (like a period or slash in certain regions), the software might misinterpret the decimal input as a date string.
Can I turn off automatic date conversion globally?
While you cannot completely disable auto-formatting globally in most spreadsheet tools, you can bypass it efficiently by pre-formatting your blank columns as "Text" or "Number" before typing your data.
Does pasting data from other sources cause this decimal issue?
Yes, pasting data from web pages or other documents can carry over hidden formatting. To prevent this, use the "Paste Special" feature and select "Values Only" or "Unformatted Text" when inserting your data into the sheet.




