Calculation Issues

Fix Excel Time Calculations with Milliseconds Stored as Text

Camila MilosovichCamila Milosovich Nov 13, 2026 868 views

Question details

The user needs to convert millisecond time values formatted as mm:ss.000 from text into real Excel time numbers so they can be used in formulas without calculation errors.

Fix Excel Time Calculations with Milliseconds Stored as Text
Product
WPS Office Spreadsheets / Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains times such as 01:23.456 in mm:ss.000 format, but the cells are stored as text and cause formula errors when calculating.
Observed behavior
Cells remain text-based or left-aligned, and formulas referencing them return errors such as division-by-zero.
Before you start

Select the affected range and check the current cell format in the Format Cells dialog. Also confirm whether your regional settings use a period or a comma as the decimal separator so you apply the correct mm:ss.000 or mm:ss,000 format.

Solution 1Recommended

Convert Millisecond Time Text to Real Time Values with Text to Columns

Use this method when a range of times formatted as mm:ss.000 is stored as text and produces calculation errors in Excel or WPS Office Spreadsheets.

The Text to Columns command forces Excel or WPS Office Spreadsheets to re-evaluate the selected text values using the applied time format. This often converts left-aligned text entries into right-aligned numeric time values that can be used in formulas.

1
Select the affected cells

Select the range that contains the millisecond times, for example C5:C17.

2
Apply the custom time format

Open Format Cells, select Custom, and enter mm:ss.000. If your region uses a comma decimal separator, enter mm:ss,000 instead.

3
Run Text to Columns

Go to Data > Text to Columns, choose Delimited, and click Finish without enabling any delimiters.

4
Verify the conversion

Confirm that the values are now right-aligned and that formulas referencing them calculate correctly.

Convert Millisecond Time Text to Real Time Values with Text to Columns
Expected result: The selected millisecond times become real numeric Excel time values and no longer cause text-related calculation errors.
Fix in WPS Office Spreadsheets

Fix Millisecond Time Calculations in WPS Office Spreadsheets

WPS Office Spreadsheets can directly convert text-based mm:ss.000 time values into real time numbers and restore formula calculations. You can apply the same custom format and Text to Columns workflow without leaving the application.

  1. 1. Open the workbook in WPS Office Spreadsheets: Open the affected Excel file in WPS Office Spreadsheets and select the worksheet containing the millisecond time text.
  2. 2. Select the text time range: Highlight the affected cells, such as C5:C17, that display mm:ss.000 values but are stored as text.
  3. 3. Apply the custom time format: Open the Format Cells dialog, choose Custom, and enter mm:ss.000 or mm:ss,000 according to your regional separator.
  4. 4. Run Data > Text to Columns: Go to the Data tab, click Text to Columns, select Delimited, and click Finish to re-evaluate the selected values as numeric times.
  5. 5. Confirm formulas calculate: Check that the values are right-aligned and that the division or time formula now returns the expected result.
Converts millisecond time text to usable Excel time values directly in WPS OfficeSupports Excel .xlsx, .xls, and .csv files with full format compatibilityFree, lightweight, and familiar spreadsheet interface that reduces calculation troubleshooting timeWorks with Microsoft Excel time formats, including custom mm:ss.000 and region-specific mm:ss,000
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel treat my mm:ss.000 values as text?

Excel treats a time value as text when it does not match the current regional time format, when the decimal separator is wrong, or when the data was imported as text. The cell usually stays left-aligned and cannot be used directly in time calculations.

What is the correct custom format for milliseconds?

Use mm:ss.000 for millisecond display. If your regional settings use a comma as the decimal separator, apply mm:ss,000 instead. You can set this in Format Cells > Custom.

Does Text to Columns really convert text times to real time numbers?

Yes. Select the range, apply the desired time format, then go to Data > Text to Columns, choose Delimited, and click Finish. This forces Excel or WPS Office Spreadsheets to reinterpret the selected entries as numeric time values.

What should I do if the time formula still shows a division-by-zero error?

First verify that the converted time cells are right-aligned and numeric. Then inspect the formula itself, especially the denominator, because a division-by-zero error is usually caused by a zero or blank divisor rather than the time format.

Can I convert only one cell instead of a whole range?

Yes. Select the individual cell, apply the same custom format, and use Data > Text to Columns or a formula such as =C5*1 to convert it. For multiple values, select the full range before running Text to Columns.