How to calculate milliseconds in excel? - Leverage Ideas on Internet

Latest

Translate

Sunday, 2 July 2017

How to calculate milliseconds in excel?

Do you have a requirement where you need to use milliseconds for calculations? or do you want to know how to calculate milliseconds difference in excel?.or how to calculate milliseconds in excel?

I will show you exactly how to do that in an easy and most effective way.

Firstly you need to know few things:-

1) In MS Excel (2007 or later) timing is by default in the format HH: MM: SS only.Which means even though you type HH: MM: SS: XX is not going to work in milliseconds.

2) The format used for milliseconds will be something like this HH: MM: SS.xxx here xxx refers to milliseconds. Please note the (.) symbol here instead of (:).

3) We need to use the custom format to specify the cell in milliseconds format.

4) Once the cell is formed in milliseconds format you can easily do any calculations like you do for a normal cell.


I will help you with an example:

Our Task: - Let's say we want to calculate the difference between two times in milliseconds.

Time 1:- 12:30:24.550
Time 2:- 12:30:24.450

Note:- (.) used in place of (:) to represent milliseconds.


Step 1: - Format the cells where we want to operate time in milliseconds (Our case  3 cells)


Right Click the cell->Format->Custom->



In Custom Format, Type the format as HH: MM: SS.000  as shown in the picture.

Step2: -Type Time 1 inside the formatted cell.i.e 12:30:24.550 exactly



Step 3: - Type Time 2 inside another formatted cell i.e 12:30:24.450 exactly as it is.


Step4: - In the third cell type =, as soon as you type = you will then have to select the first cell having Time 1, now type -(minus sign) and then select cell 2.


Step4: - You should get the result automatically in the third cell as pointed in the above picture.


Your calculation is over. Use this technique for addition as well as other operations that require milliseconds.


No comments:

Post a Comment