Formatting Issues

How to Stop Excel from Changing Decimal Numbers into Dates

Chanuka GeekiyanageChanuka Geekiyanage Oct 29, 2026 871 views

Question details

The user is experiencing an issue where decimal numbers entered into spreadsheet cells are automatically converted into dates or unexpected long values.

How to Fix Excel Changing Decimal Numbers into Dates or 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 you start

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.

Solution 1Recommended

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.

1
Select the cells

Highlight the range, column, or row where you plan to enter your decimal numbers.

2
Open Format Cells

Right-click the selected area and choose "Format Cells" from the context menu.

3
Choose Number or Text

Under the "Number" tab, select "Number" (and specify the required decimal places) or choose "Text" to treat the input as pure characters.

4
Re-enter the data

Type your decimal numbers again. They should now display correctly without converting to dates.

Format Cells as Text or Number
Pro Tip: Adding an apostrophe (') before entering your number (e.g., '2.99) forces the application to treat the input strictly as text, bypassing all auto-formatting rules.
Manage Data Efficiently with WPS Office

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. 1. Select Your Data Range: Highlight the cells, columns, or rows in WPS Spreadsheet where you will be entering decimal numbers.
  2. 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. 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. 4. Enter Your Data: Type your decimal numbers into the formatted cells. WPS Spreadsheet will now preserve the exact decimal values without altering them.
Total control over cell formatting prevents unwanted decimal-to-date conversions.Seamless 100% compatibility with Microsoft Excel (.xlsx, .xls, .csv) files.Intuitive interface for managing regional and language number formats.Lightweight and free to use across Windows, macOS, and Linux.
microsoft office alternative - wps office

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.