Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default Working With Times / Milliseconds

My times come in like this:

TimeA TimeB
120509324389.00 120509324395.00
120510001924.00 120510001927.00

The first 4 characters are month and day (which I do not need). The last 2
characters are milliseconds. I am trying to convert these times into the
table below and I also need a formula to subtract the 2 times.

TimeA TimeB Difference
9:32:43.89 9:32:43.95
10:00:19.24 10:00:19.27

Thank you in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Working With Times / Milliseconds

TimeA TimeB
120509324389.00 120509324395.00
120510001924.00 120510001927.00


Assume those entries are in A2:B3

You could use those entries as is like this:

For B2-A2:

=TIME(MID(B2,5,2),MID(B2,7,2),MID(B2,9,2))+MID(B2, 11,2)/86400/100-(TIME(MID(A2,5,2),MID(A2,7,2),MID(A2,9,2))+MID(A2, 11,2)/86400/100)

Format as h:mm:ss.00

However, if you want to convert them to times in separate cells then find
the difference:

D2 formula:

=TIME(MID(A2,5,2),MID(A2,7,2),MID(A2,9,2))+MID(A2, 11,2)/86400/100

Copy across to E2

F2 formula:

=E2-D2

Format all cells as h:mm:ss.00

Then select cells D2:F2 and copy down as needed.

Biff

"carl" wrote in message
...
My times come in like this:

TimeA TimeB
120509324389.00 120509324395.00
120510001924.00 120510001927.00

The first 4 characters are month and day (which I do not need). The last 2
characters are milliseconds. I am trying to convert these times into the
table below and I also need a formula to subtract the 2 times.

TimeA TimeB Difference
9:32:43.89 9:32:43.95
10:00:19.24 10:00:19.27

Thank you in advance.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of employees working at given time Scott Excel Discussion (Misc queries) 1 December 29th 05 12:25 AM
sorting multiple minimum times the swimmer Excel Discussion (Misc queries) 2 December 23rd 05 02:32 AM
Calculation with Working day of the year Box666 Excel Discussion (Misc queries) 4 November 10th 05 06:33 PM
Charting and analyzing Times' times data for trends Johnny Excel Discussion (Misc queries) 1 May 5th 05 01:36 AM
Trace Dependents and Precedents not working Manish Excel Worksheet Functions 0 April 11th 05 09:39 PM


All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"