This post will guide you how to show milliseconds in Microsoft Excel. How do I format cells to time format to include milliseconds in Excel. In this post, you will learn different methods to show milliseconds in Excel, including using Format Cells Feature and Text function.
Table of Contents
1. Show Milliseconds using Format Cells Feature
Assuming that you have a list of data in range B1:B4, in which contain time values, and if your time values contain milliseconds, when those time values are converted to time format, the milliseconds part will be disappeared. So if there is a way to keep to show milliseconds part in your time values. Just do the following steps:
Step 1: select the range of cells that contain time values.
![show milliseconds1](https://www.excelhow.net/wp-content/uploads/2019/08/show-milliseconds1.png)
Step 2: right click on the selected cells, and select Format Cells from the context menu list. and the Format Cells dialog will open.
![show milliseconds2](https://www.excelhow.net/wp-content/uploads/2019/08/show-milliseconds2.png)
Step 3: switch to Number tab in the Format Cells dialog box, and click Custom in the Category list box, and type the format code hh:mm:ss.000 into the Type text box. and click Ok button.
![show milliseconds3](https://www.excelhow.net/wp-content/uploads/2019/08/show-milliseconds3.png)
Step 4: you would see that the milliseconds are shown. And it will display the time in hours, minutes, seconds, and milliseconds.
![show milliseconds4](https://www.excelhow.net/wp-content/uploads/2019/08/show-milliseconds4.png)
2. Show Milliseconds by using Text Function
You can also use an Excel Formula based on the TEXT function to show milliseconds or add the milliseconds abbreviation or symbol to your time date.
Type the following formula in a black cell to display the time format in hours, minutes, seconds, and milliseconds:
=TEXT(B1,"hh:mm:ss.000")
![How to Show Milliseconds in Excel 20](https://www.excelhow.net/wp-content/uploads/2023/02/How-to-Show-Milliseconds-in-Excel-20.png)
If you want to add the milliseconds abbreviation on your time value, and you can use the “&” operator to concatenate the milliseconds values with the “ms” text, type the following formula:
=TEXT(B1,"hh:mm:ss") & "." & TEXT(B1,"000") & " ms"
![How to Show Milliseconds in Excel 21](https://www.excelhow.net/wp-content/uploads/2023/02/How-to-Show-Milliseconds-in-Excel-21.png)
3. How to Calculate the Average Time of a Set of Times with Milliseconds?
If you want to calculate the average time of a set of times given in hours, minutes, seconds and milliseconds in the selected range of cells in Excel, you can use the following formula based on the AVERAGE function, type:
=AVERAGE(B1:B4)*86400
![calculate average time with milliseconds 1](https://www.excelhow.net/wp-content/uploads/2023/02/calculate-average-time-with-milliseconds-1.png)
The formula first calculates the average time in decimal format by using the AVERAGE function. It then multiplies the result by the number of seconds in a day (86400) to convert the decimal value back to the time format of minutes, seconds, and milliseconds.
Note: the above formula return a #DIV/0 error, and it may be the cells in the range B1:B4 are empty or contain non-numeric values.If you want to exclude any non-numeric or empty cells in the given range to calculate the time values, and you can use the AVERAGEIF function, type”
=AVERAGEIF(B1:B4,">0")*86400
![calculate average time with milliseconds 2](https://www.excelhow.net/wp-content/uploads/2023/02/calculate-average-time-with-milliseconds-2.png)
4. Conclusion
By following the simple steps outlined in this post, you can easily configure your Excel spreadsheets to show timestamps in milliseconds, which can be particularly helpful in your work.
Leave a Reply
You must be logged in to post a comment.