Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
geog
 
Posts: n/a
Default Convert data into standard military time format

I am trying to convert military time data into an Excel recognized time
format so that I can perfrom time calculations (add/subtract hours).

My main problem is that the data is not all stored in a 4 digit format. Some
is stored as "300" instead of "0300". I have tried formatting the cells to
hhmm, but I end up with a cell containing "0000" regardless of the data that
was there prior. I also tried the following:
=text(cell, "0000")
That displays the data correctly, but I can not perform any time
calculations on it.

Does anyone know how I can convert my existing data into a standard military
time format? Any help would be greatly appreciated.

Does anyone know how I can get my data in
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Convert data into standard military time format

=--(TEXT(A1,"00\:00"))

format the cell as time:
hh:mm:ss
????



geog wrote:

I am trying to convert military time data into an Excel recognized time
format so that I can perfrom time calculations (add/subtract hours).

My main problem is that the data is not all stored in a 4 digit format. Some
is stored as "300" instead of "0300". I have tried formatting the cells to
hhmm, but I end up with a cell containing "0000" regardless of the data that
was there prior. I also tried the following:
=text(cell, "0000")
That displays the data correctly, but I can not perform any time
calculations on it.

Does anyone know how I can convert my existing data into a standard military
time format? Any help would be greatly appreciated.

Does anyone know how I can get my data in


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
geog
 
Posts: n/a
Default Convert data into standard military time format

thanks - that worked for formatting the time. I really appreciate the help.


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
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
How do I convert word data (not in tables) into excel format? resret29 Excel Worksheet Functions 2 October 9th 05 01:25 AM
Data in table, may need to convert to columns with OFFSET? Ron H Excel Discussion (Misc queries) 5 July 31st 05 06:44 PM
Imported Date & Time format with calcs. managed in excel from imrp Todd F. Excel Worksheet Functions 0 July 8th 05 09:03 PM
Convert decimal hour into time format? ramdalen Excel Discussion (Misc queries) 2 June 20th 05 06:21 PM


All times are GMT +1. The time now is 07:02 PM.

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

About Us

"It's about Microsoft Excel"