Fix Excel Millisecond Time Values Stored as Text
Question details
Convert time entries with milliseconds from text to numeric Excel time values and display them correctly.

- 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.
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.
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.
In Excel for Windows, open File > Options > Advanced. Under Editing options, check Use system separators and the displayed decimal 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.
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.
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.
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.

Convert Existing Text Times with a Formula
Use this formula for existing time-of-day entries that have a period followed by exactly three millisecond digits, such as 14:30:25.123.
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. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 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. Apply the formula: Drag the formula cell's fill handle down to convert the other matching entries.
- 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. Save the workbook: Use File > Save As and choose XLSX to save the workbook in Excel format.

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.




