Formatting Issues

How to Stop Excel from Changing Times into Dates or Serial Numbers

Emma BrownEmma Brown Nov 3, 2026 869 views

Question details

The user needs to prevent Excel from automatically converting entered time values into dates, serial numbers, or decimal fractions.

How to Stop Excel from Changing Times into Dates or Serial Numbers
Product
Excel
Device & OS
not provided
Scenario
Entering time values into a spreadsheet or exporting these time values to other applications like Word or Publisher.
Observed behavior
When entering a time like 5:00, Excel applies the wrong format and displays it as a serial number, a decimal fraction of a day, or a date such as March 5, 1899.
Before you start

Select the affected cells and look at the Formula Bar to see the underlying data value, which will help you determine if the cell is currently storing a text string, a decimal fraction, or a date serial number.

Solution 1Recommended

Apply Proper Time Formatting to Cells

Use this method when you need the time values to remain usable for calculations or sorting, rather than being treated as plain text.

Excel inherently stores times as decimal fractions of a 24-hour day (e.g., 12:00 PM is stored as 0.5). When a cell is formatted incorrectly as a 'General' number or 'Date', Excel will display that decimal or translate it into an 1899/1900 date. Applying a strict 'Time' format forces Excel to display the decimal as a readable clock time.

1
Select the target cells

Highlight the specific cells, columns, or rows where you plan to enter time data.

2
Open the Format Cells dialog

Right-click the selected area and choose 'Format Cells' from the context menu, or press the 'Ctrl + 1' keyboard shortcut.

3
Choose the Time format

Navigate to the 'Number' tab, select 'Time' from the Category list on the left, and pick your preferred time display style from the 'Type' menu.

4
Apply and verify

Click 'OK'. Re-enter your time values to ensure they now display correctly without converting into dates or serial numbers.

Apply Proper Time Formatting to Cells
Calculation Ready: By keeping the underlying decimal value and just changing the display format, you can still perform mathematical operations like calculating hours worked.
Seamless Spreadsheet Formatting

Fix Time and Date Formatting Issues with WPS Spreadsheet

WPS Spreadsheet offers intuitive and strict cell formatting controls that prevent unwanted auto-conversions of your time entries. You can easily lock in your desired time or text formats, ensuring your data looks exactly as you typed it.

  1. 1. Select your cells: Open your workbook in WPS Spreadsheet and highlight the cells you want to format.
  2. 2. Open Format Cells: Right-click the selected area and click 'Format Cells', or press 'Ctrl + 1'.
  3. 3. Set the category: Under the 'Number' tab, select 'Time' for calculable hours or 'Text' to treat entries as plain strings.
  4. 4. Confirm changes: Click 'OK' to lock in the formatting, preventing any future entries from turning into unexpected serial numbers.
Precise cell formatting controls to stop unwanted auto-conversion of dates and times100% compatibility with Microsoft Excel (.xlsx, .xls) files and formulasBuilt-in advanced text-to-columns and data validation toolsLightweight, fast, and completely free for everyday spreadsheet tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel change 5:00 into March 5, 1899?

Excel stores dates and times as a continuous serial number starting from January 1, 1900 (or 1904 depending on settings). When Excel incorrectly guesses your input format, it may interpret '5:00' not as 5 hours, but as a formatting string that aligns with its earliest date records, causing it to display an 1899 or 1900 date.

How are dates and times actually stored in Excel?

Dates are stored as whole numbers (serial numbers) representing the number of days since January 1, 1900. Times are stored as decimal fractions of a 24-hour day. For example, 12:00 PM is 0.5, and 6:00 AM is 0.25.

Can I calculate the difference between times if I use the apostrophe text method?

No. When you place an apostrophe before a time (like '3:00), Excel registers the cell content as literal text. Text strings cannot be used in mathematical formulas or time-difference calculations. You must use the 'Format Cells > Time' method if you need to perform calculations.

How do I fix time formatting when exporting Excel data to Word or Publisher?

When performing a Mail Merge, Word and Publisher often read the underlying decimal or serial number from Excel instead of the formatted display. To fix this, you can convert the Excel time column to text before exporting, or use DDE (Dynamic Data Exchange) settings in Word to preserve Excel's native formatting.