convert to military time in excel

Roxanne

New Member
Joined
Apr 2, 2002
Messages
1
I am having trouble converting time to military time. Excell gives me the choice in format but when I select the format it does not change to military time in the column I am trying to change. The data comes from boxcar pro (a data logger for temperature and time) and is exported to excel. Can anyone out there help me??
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
What does the data look like as it is i.e. before formatting?

Dan
 
Upvote 0
On 2002-04-03 15:12, Roxanne wrote:
I am having trouble converting time to military time. Excell gives me the choice in format but when I select the format it does not change to military time in the column I am trying to change. The data comes from boxcar pro (a data logger for temperature and time) and is exported to excel. Can anyone out there help me??

Roxanne, it's quite possible that your values were imported as text (e.g., "17:00"). This can be easily remedied if you'll select the column containing your times, choose the Data | Text to Columns... menu command, and press its [ Finish ] button.
 
Upvote 0
On 2002-04-03 15:12, Roxanne wrote:
I am having trouble converting time to military time. Excell gives me the choice in format but when I select the format it does not change to military time in the column I am trying to change. The data comes from boxcar pro (a data logger for temperature and time) and is exported to excel. Can anyone out there help me??

Excel is probably treating your number as text. If this is the case, two possible fixes are
1) Select your column. goto data - text to columns and hit finish. Your format should now "stick"
2) By formula. Put
=TEXT(A1+0,"HH:MM:ss")
next to cell A1 and copy it down.

good luck
 
Upvote 0
http://www.mrexcel.com/tip029.shtml

How do I change the event handler code for only one column that is referenced in the above tip?

Welcome to the board!

Where he has under "possible enhancements"

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    ThisColumn = Target.Column
    If ThisColumn < 3 Then

You can change the "<" to "=" and then it will work only on column C (aka column 3).
</pre>
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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