Data Import & Export

Fix Excel Millisecond Time Values Stored as Text

Rana GarciaRana Garcia Nov 22, 2026 868 views

Question details

Convert time entries with milliseconds from text to numeric Excel time values and display them correctly.

Fix Excel Millisecond Time Values Stored as Text
Product
Microsoft Excel
Device & OS
not provided
Scenario
Time values contain a decimal separator that differs from the separator expected by Excel or the system's regional settings.
Observed behavior
Excel stores the time entries as text instead of numeric time values.
Before you start

Check whether the entries use a period or comma before the milliseconds, and compare it with Excel's decimal separator. Select an affected cell and use =ISNUMBER(A2), replacing A2 with its address, to check whether it is stored as a number.

Solution 1Recommended

Match Excel's Decimal Separator and Re-enter the Times

Use this approach for new entries when the separator in the source values differs from Excel's setting.

1
Check Excel's separators

In Excel for Windows, open File > Options > Advanced. Under Editing options, check Use system separators and the displayed decimal separator.

2
Align the separator

Use the separator expected by Excel when entering the times. Alternatively, clear Use system separators and set Decimal separator to match your source; make sure the thousands separator is different.

3
Re-enter the values

Select each affected cell and re-enter its time value using the matching decimal separator. Changing the setting alone does not necessarily convert existing text.

4
Display milliseconds

Select the cells, open the Number Format drop-down on the Home tab, and choose More Number Formats > Custom. Enter h:mm:ss.000, using the appropriate decimal separator for your settings, and click OK.

5
Verify the result

Enter =ISNUMBER(A2) in an empty cell, replacing A2 with the time cell. TRUE indicates a numeric value. You can also enter =NOW() in a cell with the custom format to check the display.

Match Excel's Decimal Separator and Re-enter the Times
Formatting does not convert text: A custom number format changes how numeric values appear; it does not turn text into a time value.
Work with time values in WPS

Convert Millisecond Time Entries in WPS Spreadsheets

Use a formula in WPS Spreadsheets to convert dot-separated text times with three millisecond digits, then apply a custom time format.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Enter the conversion formula: For a text value such as 14:30:25.123 in A2, enter =TIMEVALUE(LEFT(A2,FIND(".",A2)-1))+VALUE(RIGHT(A2,3))/86400000 in an empty cell. Adjust function argument separators if required by your settings.
  3. 3. Apply the formula: Drag the formula cell's fill handle down to convert the other matching entries.
  4. 4. Format the results: Select the results and open Home > Number Format > More Number Formats > Custom. Enter h:mm:ss.000 with the appropriate decimal separator and confirm.
  5. 5. Save the workbook: Use File > Save As and choose XLSX to save the workbook in Excel format.
Convert suitable text time entries into numeric valuesDisplay milliseconds with a custom number formatOpen and save Microsoft Excel XLSX filesUse familiar spreadsheet formulas and formatting controls
microsoft office alternative - wps office

Frequently Asked Questions

Why does applying a time format leave my value as text?

A number format controls the display of numeric values but does not convert text. Re-enter the value with the expected decimal separator or use a conversion formula first.

How can I tell whether Excel recognizes a time as a number?

Enter =ISNUMBER(A2) in an empty cell, replacing A2 with the address of the time entry. TRUE means the cell contains a numeric value; FALSE means it does not.

Where can I change the decimal separator in Excel?

In Excel for Windows, go to File > Options > Advanced. Under Editing options, clear Use system separators and enter the desired decimal separator. This setting affects Excel's number interpretation more broadly.

Will changing the separator convert my existing text entries?

Not necessarily. After aligning the separator, re-enter the values or convert the existing text with a formula, then apply a custom time format.