简体   繁体   中英

formula for difference between start & end time includes milliseconds in Excel

I want to find the time difference between start & end time using Excel

my Data :

A1 = 16:00:03:38
B2 = 16:14:13:58

which is in pattern of "h:mm:ss:ms" h=hours,mm=minutes,ss=seconds,ms=milliseconds.

am using like this =B2-A1 but it not giving result instead of it giving output like this " #VALUE! "

if i change like this

A1 = 16:00:03.38
B2 = 16:14:13.58

answer is = 00:14:10:20 the answer is giving perfect

but i don't want to change : to .
is it possible to take difference between two time's as per my requirements.

Let the formula do the conversion:

=TIMEVALUE(LEFT(B2,8) & "." & RIGHT(B2,2))-TIMEVALUE(LEFT(A1,8) & "." & RIGHT(A1,2))

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM