How to convert military time to standard time in Excel?
Maybe you have accepted a worksheet with a list of military time as shown as below, and you are used to viewing standard time, so you want to convert these military time to standard time in Excel, how can you do?
|Kutools' Convert Time utility can quickly convert a time to decimal hours, minutes, seconds.|
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
In Excel, you can convert the military time to standard time with formula quickly.
1. Select a blank cell to type this formula =TIMEVALUE(LEFT(A1,2)&":"&MID(A1,3,2)&":"&RIGHT(A1,2)) (A1 indicates the cell you want to convert the military time to standard time, you can change it as you need), and press Enter key, then drag the fill handle to fill the range you want. See screenshot:
2. Then select the range B1:B6 (the range you use the above formula, you can change it as you need), and right click to click Format Cells. See screenshot:
3. In the Format Cells dialog, click Number tab, and click Time from the Category box, then select the standard time format from the right section. See screenshot:
4. Click OK, you can see the result:
Tip: If the military time just has hour and minute such as 2323, you can use this formula =TIMEVALUE(LEFT(A1,2)&":"&RIGHT(A1,2)) and then follow the above steps to convert it to standard time. See screenshot:
To convert standard time to military time, you also can use a formula to solve it.
Select a blank cell, and type this formula =TEXT(A1,"HHMMSS") (A1 indicates the cell you want to convert the military time to standard time, you can change it as you need), and press Enter, then drag the fill handle to fill the range you want. See screenshot:
Tip: If the standard time just have hour and minute such as 11:23 PM, you can use this formula =TEXT(A1,"HHMM"). See screenshot:
- Convert one cell to multiple cells/rows in Excel
- Convert column list to comma separated list in Excel
Recommended Productivity Tools
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 1 months agoThe problem with this is you have to use two columns
To post as a guest, your comment is unpublished.· 1 years agoI think this solves my problem of miltary times that are less than 1000 not having the zero in front (e.g. 714 rather than 0714):
To post as a guest, your comment is unpublished.· 1 years agoSorry for reply you too late.In my version, the formula can work for three digits number which do not need to be add the leading zero. If it cannot to work for you， you can add leading zero by format the cells as 0000 in the Format Cells > Custom.
To post as a guest, your comment is unpublished.· 1 years agoWhat if the military time doesn't contain the zero in front? For example 0714 is showing as 714. How do you format these times quickly so that your formula above works correctly?
To post as a guest, your comment is unpublished.· 2 years agoThanks, it seemed to work great even though I am not that sharp with excel. I was able to find a pre-made excel spreadsheet that converts standard time to military time automatically for my needs at another site. You can find it here: http://www.militarytime.us/military-time-converter/ (the link is under the converter tool that is also quite nice for a quick single conversion). Thought others might find it useful as well.
To post as a guest, your comment is unpublished.· 3 years agoThis works well, but there's rounding errors after a few instances of this. How do you fix that? (I. E. I get down to where I'm adding 20 seconds to my start time, but the output time is 3 seconds later than it should be.)