Calculation using time to hundreths of a second

charlottetat

New Member
Joined
Jun 7, 2011
Messages
2
Hi All.

I have data in .csv format. The data has a start time on one row in HH:MM:SS.00 format and an end time on the row below in the same format. I import the data into Excel and have a start time in F2 and an end time in F3.

I am trying to find out the time difference between F2 and F3. I've tried formatting the column with the times and the column with the calculation with a custom time of HH:MM:SS.00 then doing calculation =F2-F3 but the cell just shows #VALUE!.

Any replies are greatly appreciated :)
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
That implies that the "time values" are text-formatted and can't be "co-erced" to time values by your calculation. There may be other characters in there, what do you get with

=LEN(F2)

If that's not 11 you might have extra characters in there
 
Upvote 0
Thanks Barry - LEN(F2) returns 13 - and upon further inspection the time has a space at the start and the end. DOH!
 
Upvote 0
It might be some other character other than a space, although it might look like a space. If there's always an extra character at the start then this should work to get the time difference

=MOD(F3,2,11)-MOD(F2,2,11)
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,790
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top