How do I convert time in multiple cells to military format?

booleanboolean

New Member
Joined
Feb 25, 2017
Messages
37
I am afraid I am going to have to do this manually. For all of the times you see below except for those cells which say "OFF", I will have to convert to military time in this format: 0600-1400, so on and so forth.

Is there any way this can be accomplished?


FSaSuMTWT
OFFOFF6a-2p6a-2p6a-2p6a-2p6a-2p
6a-2p6a-2pOFFOFF6a-2p6a-2p6a-2p
6a-2p6a-2pOFFOFF6a-2p6a-2p6a-2p
6a-2p6a-2pOFFOFF6a-2p6a-2p6a-2p
7a-3p7a-3pOFFOFF7a-3p7a-3p7a-3p
6a-2p6a-2p6a-2p6a-2pOFFOFF6a-2p
12a-8a12a-8a12a-8aOFFOFF12a-8a12a-8a
6a-2p6a-2p6a-2p6a-2p6a-2pOFFOFF
OFF8a-4p8a-4p8a-4p8a-4p8a-4pOFF
OFFOFF6a-2p6a-2p6a-2p6a-2p6a-2p
OFF6a-2p6a-2p6a-2p6a-2p6a-2pOFF
8a-4p8a-4p8a-4p8a-4pOFFOFF8a-4p
6a-2p6a-2p6a-2p6a-2p6a-2pOFFOFF
OFF12a-8a12a-8a12a-8a12a-8a12a-8aOFF

<colgroup><col span="2"><col><col span="4"></colgroup><tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hello,

Go to Custom Format ... and add 00\:00

HTH
 
Upvote 0
Are your time spans always exactly 8 hours as your example table shows, or is your example a simplification of what your data really looks like?
 
Upvote 0

Forum statistics

Threads
1,215,411
Messages
6,124,759
Members
449,187
Latest member
hermansoa

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